views:

73

answers:

2

I am trying to connect my DB to a project in c# and it is not working? any ideas??

static string connectionString = 
      "Data Source=ESTER-PC;Initial Catalog=fridge; 
       Integrated Security=True;Server Version=9.00.1399.06;";
//"Data Source=Fridge;Persist Security Info=True;";
+1  A: 

Do you have a line like

SqlConnection conn = new SqlConnection(connString);

and do you get any specific exceptions on that line?

jball
A: 

Can you connect to that database when using SQL Server Management Studio (assuming it's SQL Server 2005 and up) ?

What error - if any - do you get when trying to connect from your C# program?

marc_s