473,748 Members | 6,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OleDbConnection to Sybase

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

OleDbConnection Conn= new OleDbConnection ();
string connstr = "Provider=Sybas e ASE OLE DB Provider;Data
Source=SERVER;U ser ID=USER;Passwor d=password;data base=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 8661
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.co m

"tamarindm" <ta*******@yaho o.com.sgwrote in message
news:11******** *************@y 66g2000hsf.goog legroups.com...
>I am using the following to connect to a Sybase server.

OleDbConnection Conn= new OleDbConnection ();
string connstr = "Provider=Sybas e ASE OLE DB Provider;Data
Source=SERVER;U ser ID=USER;Passwor d=password;data base=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=Sybas e ASE OLE DB Provider;Data
Source=SERVER;U ser ID=USER;Passwor d=password;data base=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*******@yaho o.com.sgwrote in message
news:11******** *************@y 66g2000hsf.goog legroups.com...
>I am using the following to connect to a Sybase server.

OleDbConnection Conn= new OleDbConnection ();
string connstr = "Provider=Sybas e ASE OLE DB Provider;Data
Source=SERVER;U ser ID=USER;Passwor d=password;data base=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
1545
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 install and I'm getting these errors: Traceback (most recent call last): File "./check_mx.py", line 69, in ?
0
1228
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 release contains a number of small bugfixes and patches received from users.
0
1312
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 release contains a number of small bugfixes and patches received from users.
2
2904
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 , logdir="/tmp/weblog.txt") .... ....
1
8326
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
6055
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 Source=TOPS;Provider=ASAProv.70" But I don't want the end users to create dsn kind of stuff. So I thought of going for dsn-less connection.
3
3609
by: Alex Murphy | last post by:
As title, Thanks
0
1384
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 available here: http://downloads.sourceforge.net/python-sybase/python-sybase-0.38pre2.tar.gz
0
1486
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 available here: http://downloads.sourceforge.net/python-sybase/python-sybase-0.39.tar.gz
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9372
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.