SELECT [출처] MSSQL에서 쿼리로 테이블스키마 보기|작성자 oyt98
NAME, (SELECT NAME FROM SYSTYPES WHERE XTYPE=SC.XTYPE), LENGTH, ISNULLABLE,
(SELECT TEXT FROM SYSCOMMENTS WHERE ID=SC.CDEFAULT) AS DEFAULTS
FROM SYSCOLUMNS SC
WHERE ID IN (SELECT ID FROM SYSOBJECTS WHERE NAME='테이블명')
DBMS/MSSQL