select 
T1.NAME AS TALBENAME,T2.NAME COLNAME,T3.name AS COLTYPE,t2.length AS COLLENGTH,
convert(varchar,t4.value) AS COLMEMO
from sysobjects t1,syscolumns t2,systypes t3,sysproperties t4 where t1.id=t2.id and t1.xtype='U' 
and t2.xtype=t3.xtype and t1.id=t4.id and t2.colid=t4.smallid and t1.name='tab'