Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAaron Selonke
10,323 PointsCreating a .sdf (SQL Local Database file) in Visual Studios 2015
To get some background in the IDE I was doing a project from the 'Head Start C#' books. The project calls for the creation of a local database. ( .sdf extension) in the current 2015 version of Visual Studios available to add to a project.... How can it be done?
5 Answers
anil rahman
7,786 PointsThis link helps walk you through it, should be very similar steps for 2015 :)
Aaron Selonke
10,323 PointsThat tutorial makes a service-based database (.mdf file) I don't know how to make a local database (.sdf file)
anil rahman
7,786 PointsOops my bad, try these then instead all are local database .sdf file setup:
http://www.dotnetperls.com/sqlce http://www.c-sharpcorner.com/UploadFile/7d3362/use-local-database-file-in-window-application-C-Sharp/ http://www.codeproject.com/Tips/811432/Use-Local-DataBase-file-sdf-in-Windows-Application
Aaron Selonke
10,323 PointsHI there, thanks for the info,
I can see in the tutorial, it is as easy as finding Local-Database in the IDE menu, but the Local-Database item is not there!
Screenshot http://uploadpie.com/eritO
Using VS 2015 community .NET Framework 4.6.1
anil rahman
7,786 PointsAccording to microsoft using service based database file is creating a local database file.