|
|
|
date: 24 Mar 2005 04:35:22 -0800,
group: microsoft.public.visio.database.modeling
back
Re: Automatic import of table and column comments
Hi Bill
That's interesting about the Oracle and DB2 option.
Regarding your SQL Server question, the syntax looks a bit odd, as
below. You can apparently add a whole set of comments to an object by
using other comment names instead of N'MS_Description'.
-- add table comment
DECLARE @v sql_variant
SET @v = N'SCRIPT COMMENT PROG'
EXECUTE sp_updateextendedproperty N'MS_Description', @v, N'user',
N'dbo',N'table', N'programmes', NULL, NULL
GO
-- add column comment
DECLARE @v sql_variant
SET @v = N'SCRIPT COMMENT PROG COLUMN'
EXECUTE sp_updateextendedproperty N'MS_Description', @v, N'user',
N'dbo',N'table', N'programmes', N'column', N'prg_serial'
GO
Thanks
Dave
date: 25 Apr 2005 06:36:31 -0700
author: Dave Routledge
|
|