Thank this author by sharing:
By Christian Geymonat,
@_ObjectName = name of the object@_ObjectType = type of the object@_TableRelated = table@_Detailed = if 0 it will show you only the tables. if 1 it will show you also the columns
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.