|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: 2 days ago @ 6:37 AM
Points: 81,
Visits: 849
|
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 9:18 AM
Points: 772,
Visits: 1,825
|
|
Great article and series.
I am curious though. You use "Description" and SSMS for columns uses "MS_Description". Is that because you are intending the article to be a teaching tool and want to avoid stepping on things?
ATB
Charles Kincaid
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: 2 days ago @ 6:37 AM
Points: 81,
Visits: 849
|
|
Hi Charles, I am using "Description" for a couple of reasons - firstly to show that you can classify metadata comments by your own categorisation types (I have used DataLineage, ToolTip as well) and secondly because I have noticed that views in SSMS use the MS_ prefix - and this way I can avoid MS-based data when outputting. I don't know if this is good or bad, approved or not - but it seems to work!
Thanks for the feedback!
Adam
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 6:00 PM
Points: 343,
Visits: 1,077
|
|
XDetails plugin uses MS_Description, as it is standard in SSMS.
_____________________________________________________ XDetails Addin - for SQL Developers and DBA blog.sqlxdetails.com - Transaction log myths - debunked!
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 11:30 PM
Points: 77,
Visits: 931
|
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Yesterday @ 10:25 AM
Points: 18,754,
Visits: 12,337
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Monday, February 11, 2013 5:58 PM
Points: 100,
Visits: 347
|
|
Thanks for the great series of articles. I started using the extended properties when I got a tool that would create database documentation based on those properties.
I found that I had many columns with the same name and were really the same item in various tables. For example, many tables had the "AccountID" column, and all were copies of the same thing (primary key in the Account table, foreign key in all other tables). When writing the statement that creates the sp_addextendedproperty, I found it helpful to try to locate another field with the same name and use that as the default value. That allowed me to save a lot of retyping. Of course, I had to review each generated statement for accuracy and make changes as necessary, but it was better than having to look up what I created for the previous tables and retype or copy/paste every time. For my defaults, I used the most-frequently-used description for columns with the same name.
Again, thanks for the thorough explanation and the helpful examples.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: 2 days ago @ 6:37 AM
Points: 81,
Visits: 849
|
|
Hi Jonsathan, You have good ideas there - cross-referencing columns with the same name and reusing repeatable descriptions. Thanks for sharing that. Adam
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, May 03, 2011 11:25 AM
Points: 51,
Visits: 175
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, April 18, 2013 11:33 AM
Points: 2,
Visits: 74
|
|
| Very informative series of articles. What would be helpful to me would be the ability to combine results from more than one database. We typically have a pair of databases for an application (data and code), and we have quite a few pairs. It would be nice if there could be a single instance of each stored procedure that could be executed against any database. Is there a way to do that?
|
|
|
|