Solved

Sybase ASE ODBC driver 4.2 - issue

Posted on 2009-05-19
1
1,172 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

919 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

21 Experts available now in Live!

Get 1:1 Help Now