Solved

CTLib BACKWARD cursor problem...

Posted on 2004-09-06
5
419 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
[X]
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
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create HTML sales dash board 2 430
SSIS Database Insert Issue 17 207
SQL select to return the latest row for each vacancyID 17 124
Sybase and replication server 13 60
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

730 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