Home > Archive > Sybase Database > March 2006 > How to set sybase interfaces file using Cleint Library API









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to set sybase interfaces file using Cleint Library API
jaivrat

2006-03-22, 3:23 am

We have one application (C++) using dblibrary. Now it is being migrated
to client library as it is not thread safe.

Our progam connects to two servers at same time, and we want two use
two different sybase interfaces file to connect to the server. The db
library had

void dbsetifile(filename)

char *filename;

which did this work.

What is the similar thing I can using client-library. It is bothering
me alot.. I am quite unfamiliar with sybase/its API's. Thanks a lot for
any help on this.

--Jai Vrat

Michael Peppler

2006-03-22, 1:23 pm

On Tue, 21 Mar 2006 18:41:25 -0800, jaivrat wrote:

> We have one application (C++) using dblibrary. Now it is being migrated to
> client library as it is not thread safe.
>
> Our progam connects to two servers at same time, and we want two use two
> different sybase interfaces file to connect to the server. The db library
> had
>
> void dbsetifile(filename)

> char *filename;
>
> which did this work.
>
> What is the similar thing I can using client-library. It is bothering me
> alot.. I am quite unfamiliar with sybase/its API's. Thanks a lot for any
> help on this.


ct_config(CS_SET, CS_IFILE, "name of interfaces file")...

Check the manual for the exact syntax.

Michael
--
Michael Peppler [TeamSybase] mpeppler@peppler.org - http://www.peppler.org/
Sybase DBA/Developer
Sybase on Linux FAQ: http://www.peppler.org/FAQ/linux.html


SybaseNeal

2006-03-22, 8:23 pm

Hello,

You might find the Appendix in the DB-Library to CT-Library Migration
Guide helpful in quickly determining which function replaces which
function:

http://manuals.sybase.com/onlineboo.../7636;pt=7636#X

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com