I need to check if a database is totally empty (no tables) using an SQL query. How can this be done?
Thanks for the help!
SQLServer implementation:
USE database_name SELECT COUNT(*) from information_schema.tables WHERE table_type = 'base table'