博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

得到SQL SERVER 2000下的表结构

Posted on 2006-05-10 10:32  liufu627  阅读(255)  评论(0)    收藏  举报
use ogvas
select s.colorder,s.name, t.name , s.length , s.isnullable --,s.type, s.xtype, s.xusertype, s.prec, s.scale
from [OGVAS].dbo.syscolumns  s,sysobjects o, systypes t
 where s.id = o.id and lower(o.name) = lower('application')
 and ( t.type = s.type  and t.xtype = s.xtype )
 order by s.colorder