how to view all tables in a databases with sql code example
Example 1: show tables sql server
USE YOUR_DATABASE_NAME
SELECT *
FROM INFORMATION_SCHEMA.TABLES
Example 2: how to get all tables in sql
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE'