473,394 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

OleDbConnection to Sybase

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.

Mar 22 '07 #1
4 8635
Have you checked the Errors property on the OleDbException instance that
was thrown? It should give you more information.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"tamarindm" <ta*******@yahoo.com.sgwrote in message
news:11*********************@y66g2000hsf.googlegro ups.com...
>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.

Mar 22 '07 #2
On 22 Mar 2007 02:48:30 -0700, tamarindm wrote:
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?

--
Bits.Bytes
http://bytes.thinkersroom.com
Mar 22 '07 #3
PS
http://www.connectionstrings.com/?carrier=sybase

"tamarindm" <ta*******@yahoo.com.sgwrote in message
news:11*********************@y66g2000hsf.googlegro ups.com...
>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.

Mar 22 '07 #4
Thanks all for the replies.

I tried OleDbException but it displays the same error message. I am
using ASE 12.5. I tried each connection strings in
http://www.connectionstrings.com/?carrier=sybase it still didn't work.

But I changed to using OdbcConnection and it works fine. So I will
just use this instead of OleDb.
Mar 23 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Josh Close | last post by:
I'm getting these errors almost every time I use sybase. I'm using it with mssql. I build it like so: python setup.py build_ext -D WANT_THREADS -D HAVE_FREETDS -U WANT_BULKCOPY python setup.py...
0
by: Dave Cole | last post by:
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. NOTES: This...
0
by: Dave Cole | last post by:
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. NOTES: This...
2
by: eight02645999 | last post by:
hi i am writing a CGI to process some database transactions using the Sybase module. so in my CGI script, i have: .... import Sybase import cgitb; cgitb.enable(display=1 ,...
1
by: db2sysc | last post by:
All, We have listed out the INBUILT Function differences between Sybase and DB2. Kindly provide your feedback or corrections and for CHANGES - DO WE NEED TO CODE our own UDFs?
1
by: Supramanian Murugesan | last post by:
Hi, I have Sybase ASA 7.0, and would like to connect using OleDbConnection. If I create a dsn called "TOPS" and use the following connection-string no problem "Data...
3
by: Alex Murphy | last post by:
As title, Thanks
0
by: =?ISO-8859-1?Q?S=E9bastien_Sabl=E9?= | last post by:
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. The module is...
0
by: =?ISO-8859-1?Q?S=E9bastien_Sabl=E9?= | last post by:
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. The module is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.