How to get list of all tables in database using T-SQL in SQL Server 2022

Channel:
Subscribers:
5,740
Published on ● Video Link: https://www.youtube.com/watch?v=FEZFHfaaR3U



Category:
Tutorial
Duration: 2:58
20 views
0


In this video we are going to see How to get list of all tables in database using T-SQL in SQL Server 2022

examples:

SELECT * FROM INFORMATION_SCHEMA.TABLES;

SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_type = 'BASE TABLE'

SELECT name FROM sys.tables

SELECT name FROM sysobjects WHERE xtype = 'U'

SELECT name FROM sys.objects WHERE type_desc = 'USER_TABLE'




Other Videos By java frm


2022-12-28How to switch between workspaces in Rocky Linux 8
2022-12-28How to switch between the GUI and Text mode (Command Line mode) on Oracle Linux 8
2022-12-28How to switch between the GUI and Text mode (Command Line mode) on RHEL 8
2022-12-28How to switch between the GUI and Text mode (Command Line mode) on Rocky Linux 8
2022-12-28How to use templates folder in Oracle Linux 8
2022-12-28How to use templates folder in RHEL 8
2022-12-28How to use templates folder in Rocky Linux 8
2022-12-27How to use type_name function to get the list of datatypes used by each column in SQL Server 2022
2022-12-27How to get list of all datatypes available in SQL Server 2022
2022-12-27How to get list of all columns in database tables using T-SQL in SQL Server 2022
2022-12-27How to get list of all tables in database using T-SQL in SQL Server 2022
2022-12-27How to view dependencies of database objects using SQL Server Management Studio in SQL Server 2022
2022-12-27How to get database objects dependencies using sp_depends (T-SQL) in SQL Server 2022
2022-12-27How to view database size using SQL Server Management Studio in SQL Server 2022
2022-12-27How to get database size using T-SQL in SQL Server 2022
2022-12-27How to uninstall SQL Server 2022 Express Edition and all its components from Windows 11
2022-12-27Microsoft SQL Server 2022 Developer Edition Installation on Windows 11 and connect from SSMS, sqlcmd
2022-12-27Microsoft SQL Server 2022 Express Edition Installation on Windows 11 and connect from SSMS, sqlcmd
2022-12-26Microsoft SQL Server 2022 Developer Edition Installation on Windows 10 and connect from SSMS, sqlcmd
2022-12-25How to Connect SQL Server 2022 Express Edition in Azure Data Studio
2022-12-25How to Connect SQL Server 2022 Express Edition from Windows Command Prompt using sqlcmd



Tags:
how to get list of all tables using t-sql in sql server 2022
list all tables in database in sql server 2022
get all database tables in sql server 2022
show all tables in sql server 2022
get all table names in sql server
display all tables from database in sql server sql server 2022 tutorial
sql server 2022 videos
sql server 2022 administration
sql in sql server 2022
mssql tutorials
sql tutorial