[thelist] CF: Determining which DB used.

Seth Bienek seth at sethbienek.com
Wed Sep 12 11:41:20 CDT 2001


I'd like to qualify this:

> Also, if you know the name of the datasource, you can pull the 
> datasource type out of the registry:
<snip>

CFRegistry obviously only works on Win systems, and only when it has not been disabled in the Administrator console (on production machines, generally it should be disabled).

So, for this to work cross-platform, your code would need to check the 'Server.OS.Name' variable.  If the only DB you are running under Linux is MySQL, then the DBtype is always MySQL when the OS is Linux, right?  If the server OS is Windoze, you check the registry (if the cfregistry tag is enabled).  

Otherwise this is really no help to you. :)

Anyhoo...

Seth






More information about the thelist mailing list