Category: SQL SERVER & SQL EXPRESS
C# connect to SQL express and retrieve a set of data
By admin on Apr 1, 2008 | In C#, SQL SERVER & SQL EXPRESS | Send feedback »
try
{
SqlDataReader thisReader;
SqlConnection thisConnection = new SqlConnection("Data Source=SERVERNAME\SQLEXPRESS;Initial Catalog=yourdatabase;Integrated Security=True;");… more »