hello
im getting this error conecting to SQL
5 [Microsoft][SQL Server Native Client 11.0][SQL Server]Changed database context to 'chronos'.
with this code
Code:
Public Function Connect() As String
On Error GoTo ErrHandler
Dim CN As ADODB.Connection
Set CN = New ADODB.Connection
CN.ConnectionString = "DSN=chronosTEST;"
CN.Open
ErrHandler:
Err.Raise Err.Number
Resume Next
End Function
Actually, I get this with any connect string I try
Code:
CN.Open "Driver={SQL Server};Data Source=s-tc-sql01;Database=chronos;User ID=user;Password=password"
CN.Open "Driver={SQL Server Native Client 11.0};server=sql.transcom-solutions.com;Database=chronos;User ID=user;Password=password;Trusted_Connection=yes"
CN.Open "Provider=MSDASQL;Driver={SQL Server Native Client 11.0};server=sql.transcom-solutions.com;Database=chronos;User ID=user;Password=password"
what am I missing? is it a problem with the SQL server?
thanks in advance!