On 2/6/01, Robert Long penned:
>Is it possible for a template to tell what type of database is
>is hitting. ie, I want to write a template that will be able to
>tell if it is hitting an Oracle or SQL database and know what
>query to use.
I'm sure someone has a better way. But you could always run a bad
query in a cftry and cfcatch the detail and look for the string:
ODBC SQL Server Driver
ODBC Microsoft Access Driver
Don't know what Oracle's is.
--
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists