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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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 |
| |||
| 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 |
| ||||
| 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 |