Solved

CTLib BACKWARD cursor problem...

Posted on 2004-09-06
5
390 Views
Last Modified: 2006-11-17
hi!
    I am using CTLib to connect the Sybase IQ Server. After executing the SQL statement, I retrieve the data by api cursor.
    The problem is, the header file(cspublic.h) commended that it does not support the backward cursor...any solution about that?

thanks.
0
Comment
Question by:small_potato
  • 2
  • 2
5 Comments
 
LVL 19

Expert Comment

by:grant300
ID: 11993770
Well, yes and no.  If you need to walk the cursor backward the whole way, you can use DESC clause(s) on the ORDER BY..

I am betting what you really want is a bi-directional cursor.  Unfortunately, the only way to do that is to read the data from the cursor and into your own buffer as you go forward.  When you need to go backwards, you walk back through the local buffer.

It's not pretty but that's the way things were done before any of the databases engines supported bidirectional cursors.

BIll
0
 
LVL 6

Expert Comment

by:ChrisKing
ID: 12002865
from memory this functionallity was added recently (Open Client 12.5.??? it think)

download the latest open client
0
 
LVL 19

Expert Comment

by:grant300
ID: 12003086
ChrisKing,

IQ is a couple of point revs behind ASE and CTlib.   Is Open Client 12.5.2 backword compatible with IQ 12.5  and still retain the new functionality?

Bill
0
 
LVL 6

Accepted Solution

by:
ChrisKing earned 250 total points
ID: 12003173
The version of the open client is independant to the version of the server (unless you need to use certain feature that is coded into both client and server, such as HA Failover)

Since the ability to scroll backward through a results set is coded completely in the client, upgrading the open client sdk should work
0
 

Author Comment

by:small_potato
ID: 12023722
Thanks for the solution!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sybase sql anywhere unload database 3 805
upgrading Sybase from 15.7 to 16 15 3,746
Problems writing binary files to Sybase from PHP 2 180
Get data out of MediSoft 4 92
Note: This is the third blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   We’ve been talki…
With the rapid rise in mobile usage, mobile devices are here to stay and have become an integral part of doing business. Here are 9 great apps for your BYOD environment.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

23 Experts available now in Live!

Get 1:1 Help Now