Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible to get a list of tables without descriptions
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00909383
Message ID:
00909437
Vues:
7
This message has been marked as the solution to the initial question of the thread.
>In the enterprise manager you can assign a description to tables under the properties. Is it possible to query tables without a description assigned? Is is possible to modify the description value from within an application?

Hi Kirk,

See fn_listextendedproperty function and sp_addextendedproperty in BOL.
-- Get list of tables w/o descriptions in pubs DB
SELECT * FROM pubs.INFORMATION_SCHEMA.TABLES
	WHERE table_name NOT IN (
		SELECT  objname
			FROM   ::fn_listextendedproperty ('MS_Description', 
	'user', 'dbo', 'table', Null, Null, Null))
-- Add description to Authors table in pubs DB
sp_addextendedproperty 'MS_Description', 
  'This is Authors table - Description', 
  'user', 'dbo', 'table', 'authors'
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform