Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Select name and count(records) from all tables in DB

$
0
0
Hi all!I have a db with app. 500 tables.Many af them are empty, or has just a very few records.Now i need to make a script, that creates tablename, count(records table) for all tables in the db.sorted on count,nameHow to?Best regardsEdvard Korsbæk

Viewing all articles
Browse latest Browse all 3145

Trending Articles