Thanks, Michael. Turns out that $dbh->{syb_oc_version} does what I've been looking for for quite some time.
For native Sybase libs I get: Sybase Client-Library/12.5.1/P-EBF14755 ESD #19/DRV.12.5.1.9/Linux x86_64/Linux 2.4.21-47.0.1.ELsmp x86_64/BUILD1251-050/OPT/Mon Jun 25 01:02:06 2007 For FreeTDS I get this: freetds v0.82 (threadsafe, default tds version=8.0) Extremely helpful while trying to build DBD::Sybase or use different builds in a script. Finally I have visibitlity into which drivers are in use. Eric > -----Original Message----- > From: Michael Peppler [mailto:mpepp...@peppler.org] > Sent: Saturday, June 04, 2011 1:54 AM > To: Berg, Eric: IT (NYK) > Cc: byter...@hotmail.com; dbi-users@perl.org > Subject: Re: DBD::Sybase and DBI->get_info() > > On Jun 3, 2011, at 9:58 PM, <eric.b...@barclayscapital.com> > <eric.b...@barclayscapital.com> wrote: > > > Thanks, John. > > > > If anyone can comment with authority on the lack of intraspection > capabilities in DBD::Sybase, that'd be helpful. I looked through the code > as well, and didn't find anything to say one way or another. Get_info() > appears to be relatively new to DBI, and it look slike there is some > facility to generate the code required to populate get_info() for your > DBD's, but nothing that says one way or another if there is actually any > way to get info form the driver. > > > > Hoping someone can help here. We are currently running DBD::Sybase for > Sybase and moving toward using DBD::ODBC for MSSQL instead of using > FreeTDS under DBD::Sybase for MS SQL. IN any case, it would be > particularly helpful if we could ask the driver object what type of DB > it's a connection handle to. > > There are a couple of things you could try - maybe see if any of the > private/driver specific methods are available. > Or something like $dbh->{syb_oc_version}, which if it returns something > will at least identify the driver handle as being a DBD::Sybase handle > using Sybase OpenClient. If you are using DBD::Sybase with FreeTDS then > you may need to use another private attribute, maybe something like > defined($dbh->{syb_dyn_supported}). > > Michael > -- > Michael Peppler > Sybase on Linux FAQ: http://www.peppler.org/FAQ/linux.html > > "A successful [software] tool is one that was used to do something > undreamed of by its author." -- S. C. Johnson > > > > > _______________________________________________ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. _______________________________________________