Solved

Sybase ASE ODBC driver 4.2 - issue

Posted on 2009-05-19
1
1,170 Views
Last Modified: 2012-08-13
Hi
We are using Sybase ASE ODBC Driver version 4.20.00.06 (syodase.dll) from Sybase dated 6/25/2003. We are in the process of migrating from Sybase ASE ODBC Driver version 3.60.00.16 (syodase.dll) from Sybase dated 6/16/2000. We are using this from a VB app using a DSN-less connection string method of creating connections. I have pasted below the code for the connection string.

We ran into trouble when trying to execute a stored proc in the unchained mode on a Sybase 12.5 server.It just hangs in there and the db monitor shows that the connection is in the AWAITING COMMAND status. So my app just hangs in there until the connection timeout we have set in the code is reached and the connection is closed with an error message.

We don't have any issues with the old driver.

Any help would be most appreciated. Also is there any place where I can get teh documentation for these drivers?

Thanks a lot.
ConntStr = "ODBC;UID=" & Userid & ";PWD=" & Pwd & ";DRIVER=" & Trim(gADriver) & ";" & "NA=" & Server & "," & DbServerPort & ";DB=" & gDb & ";is=set ansinull off;"

Open in new window

0
Comment
Question by:pganeshkumar
1 Comment
 

Accepted Solution

by:
pganeshkumar earned 0 total points
ID: 24425869
Found the issue myself. The driver requires me to explicitly mention the keyword "exec" before the stored proc name in the .CommandText property of the ADOCommand object whereas the previous version of the driver we sued would execute the stored proc without the need for the 'exec'.

Once I added this, the issue got resolved.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now