I’m trying to connect to the database, and it keeps telling me “invalid instance”.
Here’s my code:
string connectionString = "Driver={SQL Server};Server=server;Database=db;;Uid=user;Pwd=pass;";
OdbcConnection MyConnection = new OdbcConnection();
MyConnection.ConnectionString = connectionString;
MyConnection.Open();
What is the problem?
Thanks!
Try using this.
And if you are using MS Sql server, better use with SqlConnection.
http://www.connectionstrings.com/sql-server-2005