Set conn = New ADODB.Connection
conn.Open DRIVER={MySQL ODBC 5.1 Driver};SERVER=test.server.com;DATABASE=dbname;USER=username;PASSWORD=password;Option=3"
I'm now trying (unsuccessfully) to connect to the sql database via C# with the following connection string:
System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(); conn.ConnectionString = "integrated security=SSPI;data source=test.server.com;persist security info=False;initial catalog=dbname;user id=username;password=password;" conn.Open();
The error message I receive says that it failed to connect to data source. The server was not found or was not accessible. I've been pulling my hair out with this for a good few hours now and can't see what I'm missing.

New Topic/Question
Reply



MultiQuote




|