Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Table exists?
Fri, Aug 8 2008 8:16 AMPermanent Link

Francisco Fernandez
Hi.

Any way to ask database if a table exists? because it can be at the folder but not in the
database.

Thank you.
Fri, Aug 8 2008 8:26 AMPermanent Link

Fernando Dias

Team Elevate Team Elevate

Francisco,

You can search the "Information.Tables" table. For example:
   SELECT * FROM Information.Tables
returns all tables in the database.

--
Fernando Dias
[Team Elevate]

Fri, Aug 8 2008 8:30 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Francisco

>Any way to ask database if a table exists? because it can be at the folder but not in the
>database.

You need to query one of the system information tables.

eg

select Name from information.tables where Name = 'yourname'

and check to see if it returns anything

Roy Lambert [Team Elevate]
Fri, Aug 8 2008 8:51 AMPermanent Link

Francisco Fernandez
Ok.

Thank you all
Image