Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

CTLib BACKWARD cursor problem...

Posted on 2004-09-06
5
411 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

840 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