Here’s an article that presents three ways to quickly determine how many system tables are in the current database in SQL Server.
All three options use the COUNT()
function while querying the sys.objects
system catalog view. They all result in the same output, so you really don’t need to go past the first option. But I’ll list them anyway.