Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get structure of database and table
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01525417
Message ID:
01525419
Vues:
52
>Hi,
>
>What is the syntax of command to pass to SQL Server from VFP that would allow me to get all tables of the database and for each table all fields/columns? TIA.

Take a look at the INFORMATION_SCHEMA.Tables system view and also INFORMATION_SCHEMA.Columns.

INFORMATION_SCHEMA.TABLES has all tables and views in the database and the INFORMATION_SCHEMA.Columns has information about all columns in every table in a database.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform