Thursday, July 14, 2011

Count number of tables in a SQL Server database..

A simple query to find out number of tables in database is

USE SLINGKAST
SELECT COUNT(*) from information_schema.tables 
WHERE table_type = 'base table'

No comments:

Post a Comment