Friday, 3 April 2015

List all schema names with table by SQL query?

SELECT '['+SCHEMA_NAME(schema_id)+'].['+name+']' AS SchemaTable FROM sys.tables

No comments:

Post a Comment