Alright, I am currently writing an application that connects to my local SQL Server 2008 Express instance. I have created a dataset, table adapter, etc., via the Forms Designer. I simply want to know how, if possible, I can keep the application from connecting to the database when the application loads.
What I am trying to achieve is providing a login screen, where I provide my username/password for the SQL Server, and it connects at that point. How would I go about doing this?
I am using Visual Studio 2010 and C#, targeting the .NET Framework 4.0.
If you need more information or clarification feel free to ask. :)