Comments on: How to use extended properties as documentation with sp_showdoc http://www.xaprb.com/blog/2005/12/08/sp_showdoc/ Stay curious! Thu, 02 May 2013 12:36:53 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Erik http://www.xaprb.com/blog/2005/12/08/sp_showdoc/#comment-14666 Erik Tue, 27 May 2008 18:54:12 +0000 http://www.xaprb.com/blog/?p=56#comment-14666 Ah. But that still requires complex logic of updating and keeping things in sync. It would be an interesting experiment to see if I could get such a system up. Thanks for putting me on that track.

Cheers,
Erik.

]]>
By: Xaprb http://www.xaprb.com/blog/2005/12/08/sp_showdoc/#comment-14659 Xaprb Tue, 27 May 2008 13:23:01 +0000 http://www.xaprb.com/blog/?p=56#comment-14659 Hi Erik, that’s what I’ve done — but it has been a long time and my memory is hazy. I think it should be pretty straightforward: create table foo(db, tbl, prop, val).

]]>
By: Erik http://www.xaprb.com/blog/2005/12/08/sp_showdoc/#comment-14657 Erik Tue, 27 May 2008 08:24:31 +0000 http://www.xaprb.com/blog/?p=56#comment-14657 Hi Xaprb,

I would be very interested to know how you setup self-documening system in MySQL. What (and: how many) table(column)s did you use? Looks like ideal to have a common place to store ‘generic’ captions for fields in HTML forms.

Cheers,
Erik.

]]>
By: tony http://www.xaprb.com/blog/2005/12/08/sp_showdoc/#comment-1687 tony Fri, 01 Sep 2006 00:20:14 +0000 http://www.xaprb.com/blog/?p=56#comment-1687 Hi xaprb.

Ok. I’ll try what you suggest and see how that goes.

thanks

tony

]]>
By: Xaprb http://www.xaprb.com/blog/2005/12/08/sp_showdoc/#comment-1683 Xaprb Thu, 31 Aug 2006 11:34:13 +0000 http://www.xaprb.com/blog/?p=56#comment-1683 Hi Tony,

No, the extended properties are associated with the original table by a reference to its system object ID. The new table will have a new object ID, and no properties will be copied over. You could write a procedure that accepts two table names, looks up the extended properties for one, and copies them to the other.

]]>