I have a small problem with my SQL Server and the connection I want to establish to it.
Here's my server:
Now I've tried to establish a connection, but it does not seem to work:
SqlConnection myConnection = new SqlConnection("user id=Admin;" +
"password=PleaseWork;server=SQLEXPRESS" +
"connection timeout=1");
try
{
myConnection.Open();
}
catch (Exception e)
{
catchExceptionBox.Text = e.ToString();
}
Unfortunately, since I have not yet worked with SQL Server, I do not know how to look up the IP of my server. Anyways, the error message I receive is a standard failed-connection message (which I receive after 14 seconds of trying to connect).
Any help would be appreciated.