This page looks best with JavaScript enabled

How many tables do I have in a database (MS SQL)

 ·   ·  ☕ 1 min read

Here is a one-liner:

1
SELECT COUNT(*) FROM (SELECT DISTINCT table_name FROM INFORMATION_SCHEMA.TABLES) a

Victor Zakharov
WRITTEN BY
Victor Zakharov
Web Developer (Angular/.NET)