November 20, 2017 at 11:36 pm
Thanks so much for the post. Interestingly enough, the subject of using extended properties for documentation came up just last week at work. As with most new features I learn about, I've been very interested in them for a while now, but haven't really gotten comfortable saying with confidence when I would or wouldn't want to use them. IMHO, the benefits seem to be:
1. The functionality comes with every database
2. The interface for interacting with them is the same
3. It's independent of source control
4. It's tied directly to the object it's documenting. Hard to argue against documenting right at the source.
The drawbacks that comes to mind are is that
1. Anything that can be dynamically updated can be derived from existing system views or dmvs, so doing so seems redundant ("this is column A on table dbo.B")
2. Anything that can't be dynamically updated requires a squishy human to maintain
3. Without a policy around what is (or isn't) documented, and how (naming conventions, etc.) and by extension, buy-in from all devs, I could see them becoming a messy dumping ground of unstructured data
4. Hopefully not, but I could also see over reliance upon them in lieu of proper database design (e.g "This column really shouldn't contain negative numbers" as opposed to a Check constraint)
I know this article specifically avoided concrete use cases, but I'd be interested to hear how others have found working with them.
November 21, 2017 at 9:53 am
The implementation of documentation is more about getting the right information than how to deploy it. These aren't big bang problems, they are ongoing needs for everyone to communicate. We document with an PDF and HTML system. There is a column for descriptions.
412-977-3526 call/text
November 21, 2017 at 9:39 pm
You can have a extended property that serves as a URL to a Sharepoint site or other shared resource with the actual columns documentation. Hence you at least here create a trail if not the actual documentation.
----------------------------------------------------
Viewing 3 posts - 16 through 17 (of 17 total)
You must be logged in to reply to this topic. Login to reply