Solved

Database Dictionary

Posted on 2010-11-30
7
390 Views
Last Modified: 2012-05-10
Does anyone happened to have a script that will help with database dictionary?
0
Comment
Question by:Favorable
  • 4
  • 3
7 Comments
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 500 total points
ID: 34242297
Do you mean to document your schema?
0
 

Author Comment

by:Favorable
ID: 34313632
Yes to document all datatbase schema.
0
 
LVL 39

Assisted Solution

by:BrandonGalderisi
BrandonGalderisi earned 500 total points
ID: 34330538
I use SQL Doc, by Red-Gate software.  It works by adding extended database properties into MS_Description.
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:Favorable
ID: 34335221
Does your company pays for it and what is the cost?
0
 
LVL 39

Assisted Solution

by:BrandonGalderisi
BrandonGalderisi earned 500 total points
ID: 34340674
For JUST SQL Doc is $295 per user.  And if I asked yes my employer would pay for it.
0
 

Author Comment

by:Favorable
ID: 34348608



I need a t-sql query that will help to retrieve a particular table information in database like the following:



TableName, Column Names, Type, Length, Nullable
   



Also, to retrieve user stored procedure, Views, and Function.

I'm using these for my database documentation.






 


0
 
LVL 39

Assisted Solution

by:BrandonGalderisi
BrandonGalderisi earned 500 total points
ID: 34356015
SELECT c.TABLE_NAME,c.COLUMN_NAME,c.DATA_TYPE,c.CHARACTER_MAXIMUM_LENGTH,c.IS_NULLABLE
FROM INFORMATION_SCHEMA.COLUMNS c

SELECT r.ROUTINE_NAME,r.ROUTINE_TYPE,r.DATA_TYPE
FROM INFORMATION_SCHEMA.routines r
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sql Audit table 3 48
sQL pivot 9 39
SQL Server R2 Stored procedure performance 8 33
SQL Restore Script - Syntax Error 8 75
Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now