Good afternoon,
I have a table called assurance.SelfService_Patients with around 23 columns, 22 of which I want to add metadata too, in order to explain what each column is.
At the moment I am struggling with the syntax. I have attempted the following:
EXEC sp_addextendedproperty
@name = N'SPLV'
,@value = N'The SPL version that the dataset belongs to. A new SPL version typically runs every week on a Tuesday.'
,@level0type = N'Schema', @level0name = 'assurance'
,@level1type = N'Table', @level1name = 'SelfService_Patients'
,@level2type = N'Column', @level2name = 'SPLV'
go
This runs successfully but I would have expected it to populate the properties of the table, (when you right click, properties, extended properties it still shows blank)
I would have also expected the following to extract something rather than a blank result:
select *
from sys.extended_properties
where name = 'SelfService_Patients'
Where am I going wrong please, it's incredibly frsutrating.
Regards, Andrew.