--查表中所有列名及其对于类型select a.name columnName,b.name columnTypefrom syscolumns a,systypes bwhere a.xusertype=b.xusertypeand a.id=object_id('Person')
以上查的是Person表