Getting list of record count of all tables in specific database,
Query:
sp_msforeachtable '
declare @rowcnt int
select @rowcnt=count(*) from ?
if (@rowcnt>0)
print "?" + str(@rowcnt)
'
Subscribe to:
Post Comments (Atom)
Technical Consultant @ Logica
No comments:
Post a Comment