MSSQLTips.com - your daily source for SQL Server tips

Google
 
Web mssqltips.com

ESSENTIALS: Home | Tips | Search | Categories | Top 10 | Products | Authors | Blogs | Forums | Webcasts | Advertise | About
Create a SQL Server Data Dictionary in Seconds using Extended Properties -

in Search

Create a SQL Server Data Dictionary in Seconds using Extended Properties

Last post 06-26-2008 12:58 PM by dcoleman2. 9 replies.
Page 1 of 1 (10 items)
Sort Posts: Previous Next
  • 05-15-2008 12:30 AM

    Create a SQL Server Data Dictionary in Seconds using Extended Properties

    This post is related to this tip: Create a SQL Server Data Dictionary in Seconds using Extended Properties

    http://www.mssqltips.com/tip.asp?tip=1499

  • 05-15-2008 6:17 AM In reply to

    Re: Create a SQL Server Data Dictionary in Seconds using Extended Properties

    It gave me the error when I tested it on AdventureWorks

    "The query has exceeded the maximum number of result sets that can be displayed in the results grid. Only the first 100 result sets are displayed in the grid."

     

    Anyway, I use RedGate's SQL Doc to generate DB docs

    http://www.red-gate.com/products/SQL_Doc/index.htm 

  • 05-15-2008 7:17 AM In reply to

    • aprato
    • Top 10 Contributor
    • Joined on 12-01-2007
    • Greater Boston
    • Posts 185

    Re: Create a SQL Server Data Dictionary in Seconds using Extended Properties

     Jerry

     Write your results to text instead of grid

  • 05-27-2008 6:29 AM In reply to

    Re: Create a SQL Server Data Dictionary in Seconds using Extended Properties

    How do you specify writing results to text instead of grid?

  • 05-27-2008 7:37 AM In reply to

    • cgw
    • Top 500 Contributor
    • Joined on 05-27-2008
    • Posts 1

    Re: Create a SQL Server Data Dictionary in Seconds using Extended Properties

    You can go to Tools -> Options -> Query Results -> SQL Server -> General, and change the default destination to "Results to test".

    I'm not crazy about changing my results default, but I could not find a command that I could execute as part of the script.

  • 05-27-2008 7:47 AM In reply to

    Re: Create a SQL Server Data Dictionary in Seconds using Extended Properties

    On top of the SSMS Toolbar (the same one that has the red Execute button), there are 3 icons near the right

    Results to Text

    Results to Grid

    Results to File

     

    just click on the one you need

  • 06-04-2008 12:54 AM In reply to

    • amirs
    • Top 150 Contributor
    • Joined on 06-04-2008
    • Posts 2

    Re: Create a SQL Server Data Dictionary in Seconds using Extended Properties

    hi i have use this script of link http://www.mssqltips.com/tip.asp?tip=1499

    but i have not dispaly row and colomn of table only dispaly table name

  • 06-04-2008 12:11 PM In reply to

    Re: Create a SQL Server Data Dictionary in Seconds using Extended Properties

    That is becuase you do not have any extended properties set on the tables.

  • 06-08-2008 10:26 PM In reply to

    • amirs
    • Top 150 Contributor
    • Joined on 06-04-2008
    • Posts 2

    Re: Create a SQL Server Data Dictionary in Seconds using Extended Properties

    thanks for repaly

    but i set  the extended property  of some tables in databse  .

  • 06-26-2008 12:58 PM In reply to

    Re: Create a SQL Server Data Dictionary in Seconds using Extended Properties

    Nice!  Elegant, and the price is right ;) Two tweaks may be useful to others:  I’m way behind on column descriptions so moved the exprop.class = 1 from the WHERE to the ON to show columns that lack descriptions. Changed @TableName from v(50) to sysname – I got long table names. I’m off to create http endpoints to let my servers publish their own DD – on demand!

     

Page 1 of 1 (10 items)