bowemc
asked on
C# Sybase ODBC connection
Hi,
How do I create a connection to a Sybase 11 or Sybase ASE database via ODBC with C# / .Net 1.1? I want to pass in iser id and password also to ensure its a valid user?
I hope you can help.
Thanks as ever
How do I create a connection to a Sybase 11 or Sybase ASE database via ODBC with C# / .Net 1.1? I want to pass in iser id and password also to ensure its a valid user?
I hope you can help.
Thanks as ever
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi,
I've placed you code in a try catch block
cn.open throws an error - the error description is : {"ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified" }
Any ideas?
I've placed you code in a try catch block
cn.open throws an error - the error description is : {"ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified" }
Any ideas?
try a different connection string. try one of the odbc connections. (sorry i can't test because i don't have sybase)
Standard Sybase System 11
Driver={SYBASE SYSTEM 11};Srvr=myServerAddress;U id=myUsern ame;Pwd=my Password;D atabase=my DataBase;
Standard Sybase System 11
Driver={SYBASE SYSTEM 11};Srvr=myServerAddress;U
http://www.connectionstrings.com