SQLServerCentral.com / Article Discussions by Author / Article Discussions / Discuss content posted by E Bond / Using Extended Properties To Keep Everyone Informed / Latest PostsInstantForum.NET v99.99.99SQLServerCentral.comhttp://www.sqlservercentral.com/Forums/notifications@sqlservercentral.comFri, 09 Dec 2016 10:46:29 GMT20RE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxAlso, the BIDSHELPER tool on CODEPLEX extracts out these extended properties from the relational database and lands them into an SSAS solution--a very convenient and time saving tool! However, this is a one-way data transfer as you cannot bring SSAS metadata into the RDBMS at this time.Thu, 02 Jan 2014 11:53:45 GMTsneumerskyRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxExtended properties are indeed the glue that holds together the BUSINESS component of our "metadata repository".....as it is just one component of a bigger master data strategy. The biggest challenge is usually in keeping this information up to date.Thu, 02 Jan 2014 11:49:55 GMTsneumerskyRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxI had used the description extended property to keep a list of what all columns in my tables were used for and whether they were really being used anymore. I never thought of using it also to keep track of what stakeholders were interested in the database. Nor did I know that you could setup custom extended properties.Thank you for sharing this information. Very much appreciated.Wed, 01 Jan 2014 14:24:39 GMTcrusso-1157926RE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxMy [url=http://www.livedoco.com]web based SQL documentation tool - LiveDoco[/url] addresses (to an extent) some of the concerns raised here:1) It allows easy access (adding/editing/searching) to any extended properties, including the default MS_Description2) It can export them to a SQL file that can be used to merge(add new/update existing) them into a db with similar/same structure. This SQL file could be saved somewhere in case something happens to the DB (and/or all your EPs in it).It can do other things as well, but not directly related to this topic so please see [url=http://www.livedoco.com]www.livedoco.com[/url] for more information if interested.Wed, 25 Apr 2012 10:25:39 GMTZ1024RE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspx[quote][b]Eric B-295769 (11/29/2010)[/b][hr]Comments posted to this topic are about the item [B]&lt;A HREF="/articles/Central+Management+Server/71499/"&gt;Using Extended Properties To Keep Everyone Informed&lt;/A&gt;[/B][/quote]Hi,I am facing the Erron 3709 while i open the ProgramSat, 04 Dec 2010 03:52:17 GMTmaxvigil2004RE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxI use extended properties extensively in my own work as a developer.I am loath to use them on other developer's work as a dba.That's because when a script gets run that drops an oblect, the extended properties I added will be lost.I'm not the only dba on the team, so I can't ensure that the extended properties are saved and restored after the item is created. Nor can I ensure that the developers add them to their source code.Incidentally, extended properties are not included in the generated create scripts for all objects, i.e., views. That's particularly annoying to me as I like to include column definitions in the views for the data dictionary reports.Fri, 03 Dec 2010 16:38:05 GMTdavid_wendelkenRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxGreat article.I've been enforcing extended properties on database objects now for two years and it has made an incredible difference.Tables and procedures are now well documented.SSRS reports are available to the developers to allow them to see the documentation, and with the aid of ApexSQLDOC I can produce a full data dictionary on request.Because we hold databases for multiple companies, all with almost the same structure, additional extended properties help identify who the database belongs to, who is responsible for it and contact details.On top of this some were developed to be used to help in code rollout. Whilst the databases are 90% identical code, occasionally a procedure strays due to a fast hotfix. A quick change to a custom "SYNC" property allows us to alert developers that the code is different to other databases, and to DBAs to review the code ASAP to recode it and bring it back into line. This, with the aid of a few custom scripts, has decreased the rollout time of new projects from hours to a matter of minutes.It was difficult to persuade other people to use, but now that it is firmly embedded in the culture here it has proved worth its weight in gold. They are definitely an underused and extremely useful recourse.Wed, 01 Dec 2010 01:56:20 GMTRayvenRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxThanks for the article. This gives a nice option for one to use for self documenting a database.Tue, 30 Nov 2010 15:39:27 GMTSQLRNNRRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxI'm uncomfortable with this solution. It seems to be a bit too esoteric/arcane for my tastes. My solution is to have a couple of small tables that handle the information and then a front end on the company intranet to handle data entry, updating status, sending email, etc.It seems to me that extended properties are too hidden and too easily lost to make for a good repository for this data. Even if you have documented how and why and where, the next person in your position has to find that documentation and unravel it. If you put this data in a database that is visible from the console it becomes very easy for the next person to find.Also, extended properties seem quite limited as you show by having to store a list instead of scalar values. You wouldn't want to do this with data under normal circumstances, so why now?--JimFiveTue, 30 Nov 2010 14:59:04 GMTJames GoodwinRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxHere is a view that I add to my databases that I use to create a column level data dictionary. I think I will incorporate the ideas from this article into it. [code="sql"]CREATE VIEW [dbo].[DataDictonary] AS SELECT schemas.name AS SchemaName ,all_objects.name AS TableName ,syscolumns.id AS ColumnId ,syscolumns.name AS ColumnName ,systypes.name AS DataType ,syscolumns.length AS CharacterMaximumLength ,sysproperties.[value] AS ColumnDescription ,syscomments.TEXT AS ColumnDefault ,syscolumns.isnullable AS IsNullable FROM syscolumns INNER JOIN sys.systypes ON syscolumns.xtype = systypes.xtype LEFT JOIN sys.all_objects ON syscolumns.id = all_objects.[object_id] LEFT OUTER JOIN sys.extended_properties AS sysproperties ON (sysproperties.minor_id = syscolumns.colid AND sysproperties.major_id = syscolumns.id) LEFT OUTER JOIN sys.syscomments ON syscolumns.cdefault = syscomments.id LEFT OUTER JOIN sys.schemas ON schemas.[schema_id] = all_objects.[schema_id]WHERE syscolumns.id IN (SELECT id FROM sysobjects WHERE xtype = 'U') AND (systypes.name &lt;&gt; 'sysname')[/code]Tue, 30 Nov 2010 12:26:08 GMTPaxmanRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxYou know, I really don't know about the permission level for adding/reading the properties. As I mentioned in my post, it is still just an idea I'm toying with. I suppose if security was an issue, it could be addressed by a role allowing users the rights they need for extended properties, and then adding those users or groups to the role. We have so many other issues to tackle it just hasn't been high priority and there is also a push to get some sort of third-party tool in here for capturing meta data. I believe many of the third-party tools use extended properties as well, so I've been holding off to see where that goes.Tue, 30 Nov 2010 10:24:03 GMTboumerlinRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxHello, My foray into extended properties at the database-level (SQL2005) was stopped short when I found that only users with elevated rights, such as Control or View Definition, could read them. Has this changed with SQL 2008?MarkTue, 30 Nov 2010 09:52:37 GMTstarunitRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxIn lieu of using extended properties, I've done something similar with a table that maps 1-1 to the sysmanagment_shared_registered_servers, creating a central repository for all the server meta-data. We're still in the same predicament as you with many undocumented servers and many stakeholders, but it is getting better as a result of CMS. We're also spitting out a dynamic Sharepoint spreadsheet from the data for those more comfortable working from Excel, as well as a weekly spreadsheet to be used as a backup in the event of the CMS server failing. I am toying with the idea of extended properties on the individual databases, but frankly we're just not that far along yet.Also, I have grouped our servers by edition in CMS, as many of our scripts used in multi-instance queries do not work with SQL 2000, as I'm sure you have discovered.Tue, 30 Nov 2010 09:18:03 GMTboumerlinRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxWell, it's another list to keep track of, but at least it's centralized. It can get out of date, but so can everything else. It's nice that it links stakeholders directly to the think they are a stakeholder of!Tue, 30 Nov 2010 08:36:53 GMTLouise MitchellRE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxThanks for catching the typo... when I figure out how to correct it I will!As far as what version: CMS is a SQL Server 2008+ feature, although you can use it to "manage" 2000+. Extended properties were actually introduced in 2000 I believe, but this article is aimed at 2005+, no guarantee any of the statements will work with 2000.Tue, 30 Nov 2010 06:51:46 GMTEric B-295769RE: Using Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxThanks for the article!There is a small typo in the following query[code="sql"]SELECT a.[name] AS 'Logical Name', , a.[server_name] AS 'Server Name' , b.[name] AS 'Group Name' , a.[description] FROM [msdb].[dbo].[sysmanagement_shared_registered_servers] a JOIN [msdb].[dbo].[sysmanagement_shared_server_groups] b ON a.[server_group_id] = b.[server_group_id] ORDER BY b.[name] ASC, a.[server_name] ASC[/code]The comma at the end of SELECT a.[name] AS 'Logical Name', is too much. :-)Question: This is for SQL Server 2008 and newer only?Tue, 30 Nov 2010 00:45:07 GMTliebesiechUsing Extended Properties To Keep Everyone Informedhttp://www.sqlservercentral.com/Forums/Topic1027726-2849-1.aspxComments posted to this topic are about the item [B]<A HREF="/articles/Central+Management+Server/71499/">Using Extended Properties To Keep Everyone Informed</A>[/B]Mon, 29 Nov 2010 22:15:28 GMTEric B-295769