http://community.csdn.net/Expert/topic/5324/5324523.xml?temp=.7014276
------解决方案--------------------------------------------------------
获得表名
select msysobjects.name from msysobjects where (left([name],1) <> "~ ") and (left$([name],4) <> "Msys ") and (msysobjects.type)=1
至于各表列名,主键,索引,各列数据类型,...等信息