📜  架构中的所有 SQL Server 表 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:06.790000             🧑  作者: Mango

代码示例1
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;