Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
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)

Comprehensive HTML Database Documentation (Revised

By fperkins,

Getting "Subquery returned more than 1 value" error on cursors. Changed the following in a couple of places and it runs now.

--(SELECT systypes.[name] FROM systypes WHERE xtype = syscolumns.xtype),

Mny thanks to whomever wrote the script. Saved me a bunch of effort.

"This script will document tables (including constraints and triggers, row counts, sizes on disk), views (including all used fields), stored procedures (including used fields and parameters), database users, database settings and server settings.

This script has been cobbled together from several others found on this site, so they deserve the recognition, not me :)

Simply execute it on the database you wish to document. "

Total article views: 540 | Views in the last 30 days: 4
Related Articles

script included index

index include script


Scripting Objects Including Permissions

Scripting Objects Including Permissions


Script to Get the Database Restore history

Script to get the Database restore history details including with the files by which the database is...


Script tables but why not include their non-clustered indexes ?

Script tables but why not include their non-clustered indexes ?


Script a Database Role

Script one or all roles in a database. Includes users, obect permissions and column permissions.


Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

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.

Join us!

Steve Jones

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones