--創建表
create table test (
id varchar( 200 ) primary key not null ,
sort int ,
name varchar( 200 ),
)
--給字段加註釋
EXEC sp_addextendedproperty N 'test' , N '序號' , N 'user' , N 'dbo' , N 'table' , N 'test' , N 'column' , N 'sort' ;
--表加註釋
EXECUTE sp_addextendedproperty N 'test' , N '測試表' , N 'user' , N 'dbo' ,N 'table' , N 'test' , NULL, NULL
|