Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List table definitions for all tables
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01461447
Message ID:
01461474
Vues:
50
>Hi All, anyone know a way of listing table defs for every table in a database ? I need to do some documentation and this is my starting point

You may want to explore Information_Schema.Columns view.

For indexes for a table take a look at

http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/sp_indexinfo-an-enhanced-index-informati (the referenced link).

and also

http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/smo-script-index-and-fk-s-on-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