canax
05-02-2010, 08:42
Ciao ragazzi, vorrei fare un script per sql server che mi restituisca il numero di righe presenti in ogni tabella.
Fin'ora ho fatto questo che mi restituise tutte e tabelle del db.
USE MIO_DB;
GO
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'
ORDER BY TABLE_NAME;
GO
Sapete come aiutarmi!??
Grazie
Fin'ora ho fatto questo che mi restituise tutte e tabelle del db.
USE MIO_DB;
GO
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'
ORDER BY TABLE_NAME;
GO
Sapete come aiutarmi!??
Grazie