Site sponsored by: Idera Try Idera’s new SQL admin toolset
SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Quiz
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Product Reviews

All Reviews
Audit Tools
Backup Tools
Change Management Tools
Clustering Tools
Coding Tools
Design Tools
Diff / Compare Tools
Documentation Tools
Job Management Tools
Log Recovery Tools
Monitoring Tools
Remote Access Tools
Reporting Tools
Security Tools
Testing Tools

Write for Us

Share you SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

Filtered Indexes in SQL Server 2008
Importance of Database Backups and Recovery Plan
Data Compression in SQL Server 2008
SQL Server 2008 MERGE Statement

More     
 
Latest FAQ's

ALTER TABLE SWITCH statement failed because the object '%.*ls' is not ...
ALTER TABLE SWITCH statement failed because column '%.*ls' at ordinal %d ...
ALTER TABLE SWITCH statement failed because table '%.*ls' has %d columns ...
SQL Server Reporting Server (SSRS) service is failing to start ...

More     
   
Latest Software Reviews

Spotlight on ApexSQL Doc 2008
ApexSQL Enforce
Embarcadero Change Manager
SQL Server DBA Dashboard

More     

reviews >> documentation tools >> SqlSpec, Not Just a Documentation Tool ...

SqlSpec, Not Just a Documentation Tool

By : Dinesh Asanka
Jan 10, 2007

Page 2 / 3

Let us see what you get for sample AdventureWorks database that comes along with SQL Server 2005.

It took little over two and half minutes to create CHM file of above database. For SQL Server 2005 database, you will see CHM like in following format.

First page of CHM will give you summary of database. Summary of database includes count of objects, data and log file information, user information, and properties of your database and server. Sometimes, you need to keep server properties in order to execute some operation in database. Note that to see all the server properties, you must first make sure that the "show advanced options" server option is true. To set it, you can run this code:

exec sp_configure 'show advanced options', 1
reconfigure

For all the objects, you can view the summary of them. There are valuable graphical representations for Tables, stored procedures, views, triggers and user defined functions. For example, following graph shows largest tables by size on disk. From this, DBAs can identify what are the tables that needed to be in separate filegroups.

In triggers, it will be better if it can show whether the trigger is for replication or not for replication and the order of execution. Even though these parameters are rarely used, but they are very essential when the need arises. The author of SqlSpec says this feature will be coming in the next version.

To view the documentation of a table you can select the table from the tree node. Then you will see a page like below.

All the details for columns will be displayed including the comment. Again, comments are not available with most of the tools around.

This screen also has indexes and defaults. Bu clicking the default you will be taken to the default description page.

Another important feature of this tool is script of objects.

Graphical presentations are very rare in other documentation tools, but not in SqlSpec. If you select a table, you can view the relationship between that table and other tables. This is very important feature as a picture can explain thousand words.

Dependency graph for stored procedure is another important feature available with this fantastic tool. It indicates all the stored procedures, views, and table that is depend from the selected stored procedure. Dependency graphs are created for all objects that have dependencies.

You can also generate data model diagrams for your database. It is like the database diagram that you are getting in SQL Server 2000, except that you can include any type of object, as well as objects from different databases in a single diagram. Finally, you can include your own types of objects (such as COM, Web services, etc) in the data model diagrams. You can add the list of objects specify them in command line parameter /d.

There are few samples available in the SqlSpec Web site. You can view them from following links.

  • AdventureWorks.
  • msdb.

As you are aware, there are many new features available with SQL Server 2005. These SQL Server 2005 specific objects can be documented with SqlSpec: DDL Triggers for Database and Servers, Authentication objects such as Symmetric and Asymmetric Keys, Certificates, Assemblies, CLR procs and udfs, Schemas and XML Schema Collections.


<< Prev Page     Next Page>>    








Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | QDPMA Performance Tuning | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 1999-2008 by T10 Media. All rights reserved