Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the total number of tables in a database?
Message
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01320465
Message ID:
01320466
Vues:
13
Try
-- SQL 2005 and later
SELECT COUNT(*) FROM sys.tables

-- SQL 2000 and later
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES
	WHERE TABLE_TYPE = 'BASE TABLE'
>
>Is there SQL Syntax or Store Procedure to get the total number of tables in a database?
>
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform