Creating and utilizing a local database in Visual Studio 2010

Alex picture Alex · Jan 21, 2013 · Viewed 22.7k times · Source

I can't seem to find any straight-forward guides on how to create a windows forms application with C# .NET in Visual Studio 2010 that uses a local database. When I create the local database, a .sdf file, I can't figure out how to have my form access it. All the discussions I have been able to find on it seem to assume I know more than I do on the subject. Can anyone direct me towards a straight-forward beginner's guide on the subject, or outline the steps I need to take?

Answer

Stephen Byrne picture Stephen Byrne · Jan 21, 2013

Check here, it will walk you through what you need to do...if you have any specific issues with specific parts of the linked process, let us know.