How to Connect to a SQL Server Express Database
To connect to a database using SQL Server Express, you first need to
set up a SQL Connection object. You then need something called a connection
string to tell C# where the database is.
To set up a connection object, double click the blank form. Just outside
of the Form Load event add the following:
System.Data.SqlClient.SqlConnection con;
Your coding window should look like this:
CLICK ME FOR READ MORE >>>