Answers for "All SQL Server Tables in a Schema"

C#
0

All SQL Server Tables in a Schema

DECLARE @schema SYSNAME;
SET @schema = N'some_schema';

SELECT [table] = s.name + N'.' + t.name
  FROM sys.tables AS t
  INNER JOIN sys.schemas AS s
  ON t.[schema_id] = s.[schema_id]
  WHERE s.name = @schema;
Posted by: Guest on July-19-2021

Code answers related to "All SQL Server Tables in a Schema"

C# Answers by Framework

Browse Popular Code Answers by Language