select u.suid,u.uid,u.name uname,
o.id oid,o.name oname,o.type,
c.id tid,c.colid,c.name cname,
c.type,t.name tname,c.length
from syscolumns c,sysobjects o,sysusers u,systypes t
where c.type=t.type
and c.id=o.id
and o.uid=u.uid
转载于:https://www.cnblogs.com/l-g-j/archive/2011/06/30/2094005.html