Hi to all,
In my installer, I am using System.Data.SqlClient.SqlConnection(connectionstring) to check if I can connect to the SQL server instance. When a user provides the connection string, I remove the "initial Catalog=..." part and try an SQLConnection.Open(). If all is fine, then I proceed in setting up the database (i.e. attaching etc).
This appeared to be working fine, but today all my tests using a remote machine do not work.
First, my initial approach (removing initial catalog) works fine for a local machine, so is this the correct way of doing this for a remote machine?
Secondly, if it is not correct, what is the best way to do this?
JD