Is there any way to count tables with no rows in my database with using T-SQL
statement?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
I use the following:
from khtan @ SQL Server Forums, this is used to drop all empty tables, maybe you could adapt it to output a count?
I don't have SQLServer here but I could take a stab at it if you like.
There you go... using a derived table.