表sysdatabases:保存DBMS中數據庫信息
select [name] from [sysdatabases] order by [name]
就能得到該DBMS中的數據庫信息
表sysobjects:保存數據庫中數據表信息
con.ChangeDatabase(DBName)
select [id],[name] from [sysobjects] where [type]='u',con
就能得到該數據庫的表信息
表syscolumns:保存數據表的列信息
select [name] from [syscolumns] where [id]="從sysobjects中獲取該表的id"
就能得到該表的列信息