• hopefully you'll get a stack of options;

    Here's one: this procedure returns a table of HTML-formatted information that documents some server settings, and object details of the currently scoped database:

    Link To sp_dbDocumentation.txt

    it has a dependency to a stored procedure which scripts a TABLE or objects DDL as a varchar string I created here:

    Link To sp_GetDDL_Latest.txt

    it's an enhancement of this shallowabove's [/url]contribution:

    http://www.sqlservercentral.com/scripts/Miscellaneous/31005/

    and it produces well formed HTML output that looks like this:

    Sample HTML Output DEV223_master.html

    because it looks pretty, it usually solves some of the documentation requirements pretty quickly and easily. Hope this helps you out, along with any other posts folks can add!

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!