USER YOUR_DATA_BASE_NAME GO SELECT COUNT(*) from information_schema.tables WHERE table_type = 'base table'