Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table exists in SQL Server
Message
De
08/10/2002 17:12:41
 
 
À
08/10/2002 10:58:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00708763
Message ID:
00709047
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform