I am having problems connecting my Visual Basic 6 project to a Sybase 12.5 database, I want to code it so that a DSN is not needed.
When using this code,
conn.Open "Driver={SYBASE SYSTEM 11};" & _
"Srvr=wwhbsdb1,5555;" & _
"DB=AML;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
I get the error,
-2147467259 - [INTERSOLV][ODBC SQL Server driver][SQL Server]ct_connect(): directory service layer: internal directory control layer error: Requested server name not found.
And when attempting to use a different driver with this code,
conn.Open "Driver={SYBASE ASE ODBC Driver};" & _
"Srvr=wwhbsdb1,5555;" & _
"DB=AML;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
I get the error,
-2147467259 - [MERANT][ODBC Sybase ASE driver]Insufficient information to connect to the data source.
I am getting really stuck with this? I have re-installed Sybase 12.5 because I thought I had the wrong drivers, is there an issue here? What driver should I have displayed and also reference in ODBC Administrator > Drivers?
N.B. The full Sybase DB version is Adaptive Server Enterprise/12.5.3/EBF 13327 ESD#7/P/RS6000/AIX 5.1/ase1253/1951/64-bit/FBO/Fri Mar 24 04:52:26 2006
When using this code,
conn.Open "Driver={SYBASE SYSTEM 11};" & _
"Srvr=wwhbsdb1,5555;" & _
"DB=AML;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
I get the error,
-2147467259 - [INTERSOLV][ODBC SQL Server driver][SQL Server]ct_connect(): directory service layer: internal directory control layer error: Requested server name not found.
And when attempting to use a different driver with this code,
conn.Open "Driver={SYBASE ASE ODBC Driver};" & _
"Srvr=wwhbsdb1,5555;" & _
"DB=AML;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
I get the error,
-2147467259 - [MERANT][ODBC Sybase ASE driver]Insufficient information to connect to the data source.
I am getting really stuck with this? I have re-installed Sybase 12.5 because I thought I had the wrong drivers, is there an issue here? What driver should I have displayed and also reference in ODBC Administrator > Drivers?
N.B. The full Sybase DB version is Adaptive Server Enterprise/12.5.3/EBF 13327 ESD#7/P/RS6000/AIX 5.1/ase1253/1951/64-bit/FBO/Fri Mar 24 04:52:26 2006