Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table exists in SQL Server
Message
From
08/10/2002 17:12:41
 
 
To
08/10/2002 10:58:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00708763
Message ID:
00709047
Views:
17
>I currently check for the existence of a specific file in a specific location to determine if a "module" is installed.
>
>RETURN file(_screen.mvApplication.DataDirectory + "PEOPTION.DBF")
>
>How can I accomplish the same thing in SQL Server?

In addition to other responses, these are two statements that executed through SPT or ADO will return a list of tables on the current database:
SELECT * FROM INFORMATION_SCHEMA.TABLES
..or
SELECT * FROM SYSOBJECTS WHERE TYPE='U'
Probably the most direct way of checking a single table is through Mike Levy's response. HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform