SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

A Data Dictionary Select

By Patrick Slesicki,

Select the appropriate database and run.

This query creates a data dictionary for all joinable objects in the databases, i.e. tables, views, and table valued functions.

Let me know what you think. This is the revised edition with corrections to the foreign key derivation.

Many thanks to grasshopper for the observation.

Total article views: 786 | Views in the last 30 days: 12