Ask a Question related to Coldfusion Database Access, Design and Development.
-
liglin1 #1
Table exists?
Hi,
can anyone tell me, how to find out if a table in an MS Access DB exists?
Also, I'd like to find out, if certain columns exits if a table exists. Will
CREATE TABLE overwirte an existing table?
Thanks, Liglin
liglin1 Guest
-
Check if table exists
ON.KG wrote: One thing to consider: you are making a trip to the database to determine if a table exists. If it exists, you are then making... -
Testing if a mysql table exists
Is there a simple way to test if a mysql table exists? JUST One line ! -
Is there anything like an 'exists table' method I can use?
I need to run a querry from an asp page only if a certain table exists in the data base. Is there any kind of method that can look at the database... -
Table Exists
I am wanting to check the existance of a table in my informix db before I query it, since if I query a table that does not exist, it'll blow up on... -
Another user has modified the contents of this table or view; the database row you are modifying no longer exists in the database;
Hi, I am testing a trigger that and I am getting this error message saying "Another user has modified the contents of this table or view; the... -
Scott*e #2
Re: Table exists?
Hi,
Create table does not overwrite an existing table. You will get an error.
Not sure if the following will work in MS Access, but it works in MS SQL 2000
if exists (select 1
from sysobjects
where id = object_id('table_name')
and type = 'U')
BEGIN
drop table table_name
END
column names are similiar, you will have to look up the syntax yourself.
Scott*e Guest
-
CF_Oracle #3
Re: Table exists?
Why would you need this with Access database. Just open it in design mode and
see. It's not protected usually. If table exist you need rename it or delete in
order to use the same name for newly created. When imported table with the same
name it creates automatically new name with index. When exported it will
overwrite existing table with or without promt depending on your db settings.
CF_Oracle Guest



Reply With Quote

