Last active
September 19, 2016 16:34
-
-
Save arman-hpp/f655b25869959285bec4cc720a77c0cb to your computer and use it in GitHub Desktop.
sys.extended_properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * from sys.extended_properties | |
EXEC sp_addextendedproperty | |
@name = N'Description', | |
@value = N'بانک اطلاعاتی بانک'; | |
EXEC sys.sp_addextendedproperty @name=N'MS_Description', | |
@value=N'گروه مرجع' , @level0type=N'SCHEMA',@level0name=N'dbo' | |
EXEC sys.sp_addextendedproperty @name=N'MS_Description', | |
@value=N'حساب' , @level0type=N'SCHEMA',@level0name=N'dbo', | |
@level1type=N'TABLE',@level1name=N'Accounts' | |
SELECT p.name AS [Name],p.value | |
FROM sys.tables AS tbl | |
INNER JOIN sys.extended_properties AS p | |
ON p.major_id=tbl.object_id AND p.minor_id=0 AND p.class=1 | |
WHERE (tbl.name=N'Accounts' and SCHEMA_NAME(tbl.schema_id)=N'dbo') | |
ORDER BY [Name] ASC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment