Created
October 24, 2017 13:05
-
-
Save tompazourek/dfc14fd6aeb5e41242a4348511dfa1cc to your computer and use it in GitHub Desktop.
Count number of tables in MS SQL database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT COUNT(*) AS [TableCount] FROM [information_schema].[tables] WHERE [table_type] = 'BASE TABLE' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment