- --Ajouter une description :
- EXEC sp_addextendedproperty 'Caption', '<Description>',
- 'user', 'dbo', 'table', '<Nom Table>','column','<Nom champ>'
- GO
-
- --Lister les descriptions :
- SELECT * FROM ::fn_listextendedproperty
- (NULL, 'user', 'dbo', 'table', '<Nom Table>', 'column', default) where name='Caption'
- GO
-
- --Supprimer une description :
- EXEC sp_dropextendedproperty 'caption', 'user', dbo, 'table', '<Nom Table>', 'column', '<Nom champ>'
- GO
--Ajouter une description :
EXEC sp_addextendedproperty 'Caption', '<Description>',
'user', 'dbo', 'table', '<Nom Table>','column','<Nom champ>'
GO
--Lister les descriptions :
SELECT * FROM ::fn_listextendedproperty
(NULL, 'user', 'dbo', 'table', '<Nom Table>', 'column', default) where name='Caption'
GO
--Supprimer une description :
EXEC sp_dropextendedproperty 'caption', 'user', dbo, 'table', '<Nom Table>', 'column', '<Nom champ>'
GO