OleDbConnection to Sybase

T

tamarindm

I am using the following to connect to a Sybase server.

OleDbConnection Conn= new OleDbConnection();
string connstr = "Provider=Sybase ASE OLE DB Provider;Data
Source=SERVER;User ID=USER;Password=password;database=DB";
Conn.Open();


I get the following error. What could be the problem ?


Multiple-step OLE DB operation generated errors


The same code can connect to MSSQL server with no problem just by
changing the connection string.


Thanks.
 
N

Nicholas Paldino [.NET/C# MVP]

Have you checked the Errors property on the OleDbException instance that
was thrown? It should give you more information.

Hope this helps.
 
R

Rad [Visual C# MVP]

I am using the following to connect to a Sybase server.

OleDbConnection Conn= new OleDbConnection();
string connstr = "Provider=Sybase ASE OLE DB Provider;Data
Source=SERVER;User ID=USER;Password=password;database=DB";
Conn.Open();

I get the following error. What could be the problem ?

Multiple-step OLE DB operation generated errors

The same code can connect to MSSQL server with no problem just by
changing the connection string.

Thanks.

Not sure that is the correct syntax for an ASE connection. What version of
ASE are you using?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top