SQL Server,C#.Net,Crystal Report Solution
SQL Server,C#.Net,Crystal Report Solution
Sunday, January 21, 2018
Not Empty Table List In Sql Server
WITH TableName AS
(
SELECT
SUM(row_count) AS [row_count],
OBJECT_NAME(OBJECT_ID) AS TableName
FROM
sys.dm_db_partition_stats
WHERE
index_id = 0 OR index_id = 1
GROUP BY
OBJECT_ID
)
SELECT *
FROM TableName
WHERE [row_count] > 0
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment