Created
August 24, 2015 21:48
-
-
Save ajw0100/c770bdcedb38db92bcfa to your computer and use it in GitHub Desktop.
Documenting Your Microsoft SQL Server Data Warehouse
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
create table orders ( | |
id int | |
) | |
go | |
declare @CurrentUser sysname | |
select @CurrentUser = user_name() | |
execute sp_addextendedproperty 'MS_Description', | |
'This table holds all customer orders!', | |
'user', @CurrentUser, 'table', 'orders' | |
go | |
select value | |
from fn_listextendedproperty (null, 'schema', default, 'table', 'orders', default, default); | |
go | |
┌───────────────────────────────────────┐ | |
│ value | | |
├───────────────────────────────────────┤ | |
│ This table holds all customer orders! │ | |
└───────────────────────────────────────┘ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment