Declare @tableRowCount Table
(
TableName Varchar(300),
RowCnt INT
)
Insert into @tableRowCount
EXEC sp_msforeachtable 'select parsename(''?'',1), count(*) from ?'
select * from @tableRowCount
where RowCnt! = 0 ---(rowcnt=0 is not having any records)
order by RowCnt
Subscribe to:
Post Comments (Atom)
Search This Blog
DAX - Grouping on multiple columns and the count
Please go thorugh the below URL for entire soultion. http://community.powerbi.com/t5/Desktop/DAX-Grouping-on-multiple-columns-and-the-cou...
-
Database is a collection of objects such as table, view, stored procedure, function, trigger, etc. In MS SQL Server, two types of databa...
-
UNION: To select related information from two tables UNION command is used. It is similar to JOIN command. • UNION All: The UNION ALL comm...
-
We have classified the architecture of SQL Server into the following parts for easy understanding − General architecture Memory archite...
No comments:
Post a Comment