[freetds] Unsupported ct_con_props property CS_SERVERNAME

Patrick Spinler spinler.patrick at mayo.edu
Thu Oct 16 09:54:32 EDT 2003


Michael Peppler wrote:
> On Wed, 2003-10-15 at 13:30, Patrick Spinler wrote:
> 
>>In (ancient) Openclient 10.0, ct_con_props supported a CS_GET property 
>>CS_SERVERNAME, which returned the name of the connected server, like so:
>>
>>ct_con_props(conn,CS_GET,CS_SERVERNAME,connectionName,sizeof(connectionName),NULL);
>>
>>This doesn't appear to be in FreeTDS 0.61.  Is there an alternative I 
>>can use ?
> 
> 
> select @@servername
> 
> should work, at least for Sybase.
> 
> BTW - CS_SERVERNAME is still supported in recent OpenClient versions.
> 
> Michael

Oh ?  That'd be great, no code changes.  Can you please point out my 
idiocy and tell me where I might find the definition of it ?

   $ cd src/freetds/freetds-0_61_2/include
   $ search *.* CS_SERVERNAME
   %SEARCH-I-NOMATCHES, no strings matched

-- Pat



More information about the FreeTDS mailing list