SqlConnection sobeConn = new SqlConnection("Data Source=localhost;Integrated Security=SSPI;" + "Initial Catalog=Sobe"); sobeConn.Open(); SqlDataAdapter sobeDA = new SqlDataAdapter("SELECT * FROM Links", sobeConn);Note that I am using Integrated (Windows) security. You should double check that the database exists, the server name is correct, and the user/password. Is the user in the roles setup for that database?