Re: Differentiate Sybase from SQL Server

John Kendall <[email protected]> Sun, 29 Jul 2018 05:13:00 +0000
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Igor,
Would

  select @@version 

work for you?  
John





> On Jul 28, 2018, at 10:04 PM, Igor Korot <[email protected]> wrote:
> 
> Hi,
> Is there a way to differentiate between Sybase and SQL Server
> other than by the TDS protocol version?
> 
> I need an implementation of SQLDescribeCol(), but the information
> about column is located in a different table for those DBMSes.
> I can probably check what TDS version is used for a connection,
> but it is not very reliable way of doing things.
> 
> Thank you.
> _______________________________________________
> FreeTDS mailing list
> [email protected]
> https://url.emailprotection.link/?a95lm_Yz0z4VwVi9HMyQSLtTmToR48n_2Es8x43dIoxidNPkdt4wWeUhbwN1QnbrzawQmZ1BjbOu5bK1zLGmRSw~~