其他格式的表可参考以下内容:
'Access
Set adoCatalog.ActiveConnection = adoConnection
Set adoTable.ParentCatalog = adoCatalog
adoTable.Properties.Item("Jet OLEDB:Link Datasource"
.Value = "e:/nwind2kpwd.mdb"
adoTable.Properties.Item("Jet OLEDB:Remote Table Name"
.Value = "产品"
adoTable.Properties.Item("Jet OLEDB:Create Link"
.Value = True
adoTable.Properties.Item("Jet OLEDB:Link Provider String"
.Value = "MS Access;Pwd=456"
adoTable.Name = "Access"
adoCatalog.Tables.Append adoTable
adoConnection.Close
'dBase
adoConnection.Open
Set adoCatalog.ActiveConnection = adoConnection
Set adoTable.ParentCatalog = adoCatalog
adoTable.Properties.Item("Jet OLEDB:Link Datasource"
.Value = "E:/Borland/Shared/Data"
adoTable.Properties.Item("Jet OLEDB:Remote Table Name"
.Value = "animals#dbf"
adoTable.Properties.Item("Jet OLEDB:Create Link"
.Value = True
adoTable.Properties.Item("Jet OLEDB:Link Provider String"
.Value = "dBase 5.0"
adoTable.Name = "dBase5"
adoCatalog.Tables.Append adoTable
adoConnection.Close
'Excel
adoConnection.Open
Set adoCatalog.ActiveConnection = adoConnection
Set adoTable.ParentCatalog = adoCatalog
adoTable.Properties.Item("Jet OLEDB:Link Datasource"
.Value = "E:/Book97.xls"
adoTable.Properties.Item("Jet OLEDB:Remote Table Name"
.Value = "Sheet1$"
adoTable.Properties.Item("Jet OLEDB:Create Link"
.Value = True
adoTable.Properties.Item("Jet OLEDB:Link Provider String"
.Value = "Excel 5.0;HDR=NO;IMEX=2"
adoTable.Name = "Excel"
adoCatalog.Tables.Append adoTable
adoConnection.Close
'...