select A.name as TableName, B.name as ColName, C.Name as Type,B.length,
case when B.isnullable=0 then 'NOT NULL' else 'NULL' end as 'NULL',
D.Value as Memo
from sysobjects A
left join syscolumns B on A.id=B.id
left join systypes C on C.xusertype = B.xusertype
left join sysproperties D on B.id=D.id and D.smallid=B.colid
where A.type='U'
and A.name like 'Table'
order by A.name