I have a connection string in an app that will be installed on a server that doesn't have sql server. It needs to connect to another machine in the domain. Is there a way to do this? Is there a remote server paramater or something to use with the ConnectionString?
Any help will be appreciated...
Here is my simple connection string, but doesn't go to a remote machine. It doesn't even pay attention to the Server parameter.
//Make data connection
SqlConnection dataConnection1 = new SqlConnection();
dataConnection1.ConnectionString = "Integrated Security = SSPI;" +
"Server = " + txtServer + ";" +
"Initial Catalog = " + txtCompanyName.Text + ";" +
"Data Source = (local)";
dataConnection1.Open();
Any help will be appreciated...
Here is my simple connection string, but doesn't go to a remote machine. It doesn't even pay attention to the Server parameter.
//Make data connection
SqlConnection dataConnection1 = new SqlConnection();
dataConnection1.ConnectionString = "Integrated Security = SSPI;" +
"Server = " + txtServer + ";" +
"Initial Catalog = " + txtCompanyName.Text + ";" +
"Data Source = (local)";
dataConnection1.Open();