::fn_listextendedproperty
from the extended properties table (or view or wherever they hide that stuff in SQL 2005): SELECT o.[id] AS tbl_id, o.[name] AS tbl_nm, x.value AS col_desc FROM sysobjects o (NOLOCK) INNER JOIN ::fn_listextendedproperty( N'MS_Description', N'user', N'dbo', N'table', N'MyTable', NULL, default) x ON x.objname = o.name WHERE o.name = 'MyTable'
The script returns an error message like this:
Msg 468, Level 16, State 9, Line 1
Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
Solution: Rewrite your join like this
ON o.[name] = e.objname COLLATE Latin1_general_CI_AS
Source: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=177141&SiteID=1
Its Working great , Thanks
ReplyDeleteThanks! This solution works
ReplyDeleteThanks for the solution..
ReplyDeleteehonor
Solution from Chandra Gunawan worked for me too.
ReplyDeleteBest solution on the web
ReplyDeleteworks for me too. Thanks.
ReplyDelete