I’m new to .Net Framework. I need to have a database connected with my Windows Form application. I created a database in SQL Server Management Studio and the application is created with VS 2010 (C#).
I wasn’t able to find a way to connect my database from the application (need to have the connection when form loading). Please guide me on the way. Are there any related stuffs to mysql jdbc connector?
Thanks in advance
Madhura
You can connect to the database using the
SqlConnectionclass and perform actions.You need to pass a connection string, http://www.connectionstrings.com/ gives you complete list of connection strings for various datasources
Well it requires you to read a lot more than that! connection will only establish connection but do not perform any operations. So google and read on
SqlCommand,SqlDataAdapter, LINQ, ADO,SqlParameteretc.