connection to SQL

Jul 8 2008 4:18 AM
how do i connect to the SQL server? this is the codes I have and no matter what I do, I still cannot connect.. SqlConnection sqlConnection; sqlConnection = new SqlConnection(); sqlConnection.ConnectionString = "Data Source=YINGTING\SQLEXPRESS;Initial Catalog=SMS;Integrated Security=True"; sqlConnection.Open(); please advise!

Answers (3)