<cftry>
   <cfquery name="TestTable" datasource="DSN">
        select * from Table
   </cfquery>
   <cfcatch type="Database">
        tables doesn't exist...
        <cfquery ...>
        create table...
        </cfquery>
   </cfcatch>
</cftry>

Hope that helps get you started...

Robert

-----Original Message-----
From: Mike [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 4:54 PM
To: CF-Talk
Subject: How do you find out if a table already exist?


When creating a table how do you find out if it already exist in access
using sql create table?

Thanks
Mike
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to