SyntaxFix
Write A Post
Hire A Developer
Questions
Don't use SELECT COUNT(*) FROM TABLENAME, since that is a resource intensive operation. One should use SQL Server Dynamic Management Views or System Catalogs to get the row count information for all tables in a database.
SELECT COUNT(*) FROM TABLENAME