Unix Technical Forum

cs_ctx_global call fails

This is a discussion on cs_ctx_global call fails within the Sybase forums, part of the Database Server Software category; --> Hi, I am trying to connect to sybase. The function cs_ctx_global function fails with a return value CS_FAIL. Please ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 03:26 PM
dsrao
 
Posts: n/a
Default cs_ctx_global call fails

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 03:26 PM
Michael Peppler
 
Posts: n/a
Default Re: cs_ctx_global call fails

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 03:26 PM
dsrao
 
Posts: n/a
Default Re: cs_ctx_global call fails

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@peppler.org> wrote in message news:<pan.2004.04.20.09.53.52.859184@peppler.org>. ..
> 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 03:26 PM
Michael Peppler
 
Posts: n/a
Default Re: cs_ctx_global call fails

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

> 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@peppler.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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com