dbTalk Databases Forums  

cs_ctx_global call fails

comp.databases.sybase comp.databases.sybase


Discuss cs_ctx_global call fails in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dsrao
 
Posts: n/a

Default cs_ctx_global call fails - 04-20-2004 , 12:21 AM






Hi,
I am trying to connect to sybase. The function cs_ctx_global function
fails with a return value CS_FAIL. Please could you help me out.
Thanks,
S Rao

Reply With Quote
  #2  
Old   
Michael Peppler
 
Posts: n/a

Default Re: cs_ctx_global call fails - 04-20-2004 , 04:53 AM






On Mon, 19 Apr 2004 22:21:55 -0700, dsrao wrote:

Quote:
Hi,
I am trying to connect to sybase. The function cs_ctx_global function
fails with a return value CS_FAIL. Please could you help me out. Thanks,
Which program are you using?

Michael



Reply With Quote
  #3  
Old   
dsrao
 
Posts: n/a

Default Re: cs_ctx_global call fails - 04-20-2004 , 11:54 PM



Hi Michael,
I am trying to connect it through VC. The exact statement is as follows
CS_RETCODE rc = cs_ctx_global( cs_ver, &s_Context );
the return value CS_FAIL ("cscorerc(rc)")
Thanks for responding

Regards
Srikant


Michael Peppler <mpeppler (AT) peppler (DOT) org> wrote

Quote:
On Mon, 19 Apr 2004 22:21:55 -0700, dsrao wrote:

Hi,
I am trying to connect to sybase. The function cs_ctx_global function
fails with a return value CS_FAIL. Please could you help me out. Thanks,

Which program are you using?

Michael

Reply With Quote
  #4  
Old   
Michael Peppler
 
Posts: n/a

Default Re: cs_ctx_global call fails - 04-21-2004 , 01:08 AM



On Tue, 20 Apr 2004 21:54:44 -0700, dsrao wrote:

Quote:
Hi Michael,
I am trying to connect it through VC. The exact statement is as follows
CS_RETCODE rc = cs_ctx_global( cs_ver, &s_Context ); the return value
CS_FAIL ("cscorerc(rc)") Thanks for responding
So what value are you using for cs_ver? You must make sure that the value
you use (CS_VERSION_125, for example) matches the version of OpenClient
that is installed on the system at run-time.

You must also make sure that your environment variables (SYBASE, etc) are
set correctly so that the locale information can be correctly found.

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.peppler.org/resume.html



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.