SQL SERVER – List Schema Name and Table Name for Database

Just a day ago, I was looking for script which generates all the tables in database along with its schema name. I tried to Search@SQLAuthority.com but got too many results. For the same reason, I am going to write down today’s quick and small blog post and I will remember that I had written I wrote it after my 1000th article.

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

SQL SERVER - List Schema Name and Table Name for Database schematable

Reference : Pinal Dave (https://blog.sqlauthority.com)

SQL Scripts
Previous Post
SQLAuthority News – 1000th Article Milestone – 8 Millions Views – Solid Quality Mentors
Next Post
SQL SERVER – Why You Should Attend PASS Summit Unite 2009- Seattle

Related Posts

Leave a Reply