[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Testing for table existance
- Subject: Re: Testing for table existance
- From: "Wanko, Christopher G, CFCTR" <apollo@ATT.COM>
- Date: Tue, 5 Sep 2000 08:56:32 -0400
> I'm testing for the existance of a table at the start of my sqr.
Do yourself a favor and query the system tables, if you have access to them.
In Sybase, I'd say something like:
Begin-Select
name &isnamethere
from sysobjects
where type = 'U' and name = [$tablename]
End-Select
Check the value of &isnamethere.
-Chris