Posted on: 7/21/2014 1:05:04 PM | Views : 451

Hello 
I have a WPF application using a SQL database.  I use the following code to connect to my database. 
String conStr = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\ciq.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; SqlConnection conn = new SqlConnection(conStr); conn.Open(); SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM Employees", conn); adapter.Fill(ds, "Employees"); conn.Close(); Here is my problem.  I tested the application on two different computers, it works only on a computer. The second shows me the error. 
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correc ...

Go to the complete details ...