ODBC connect til C5
Hi, nogen der kan vise mig hvordan jeg laver en forbindelse til C5 ?Det her er hvad jeg prøver:
Dim strConn As String = "DSN=C5;DATAPWD=;"
OdbcConnection1.ConnectionString = strConn
Try
OdbcConnection1.Open()
MsgBox("Connected!")
OdbcConnection1.Close()
Catch err As Exception
TextBox1.Text = err.Message
End Try
Men får denne fejl:
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).