use master
goselect a.name '字段名',b.name '字段类型',a.length '字段长度',a.isnullable '是否能空',a.colstat '是否自增',a.xprec '精度',a.scale '小数' from syscolumns a inner join systypes b on a.xtype=b.xusertype where a.id = (select id from sysobjects where xtype = 'U' and name = 'tablename')