Can I programmatically get at all Import/Export Specs in MS Access 2010?

ε祈祈猫儿з 提交于 2019-11-28 05:38:27

问题


I am working reverse engineering an MS Access 2010 database in order to recreate it as an SSIS/SSRS solution. There a bunch of import and export specifications that I would like to document without resorting to a bunch of screen shots.

With the assistance of this blog post I was able to get some XML for some of the imports and exports.

Unfortunately, I am only getting the imports and exports (eight of them) found when clicking on External Data > Saved Imports...

I have another 26 import specs that I can get to when I click on the Advanced button from within the Import Text Wizard dialog box and then the Specs button in the Import Specification dialog box.

How can get XML for the specs embedded in the Import Text Wizard like I can for those under Saved Imports? Can I transfer them to Saved Imports somehow? Or is my only option to load each spec within the Import Text Wizard and take a screen shot of it?

Thanks,

Noel


回答1:


These Import/Export specifications are stored in two system tables: MSysIMEXSpecs and MSysIMEXColumns.

To display them:

  • Right-click on the header in the navigation pane and choose Navigation Options...
  • In the Navigation Options window check the Show System Objects box and click Ok

(courtesy of https://superuser.com/questions/268077/how-do-i-view-system-tables-for-a-mdb-in-access-2010)

Or create a query like this:

SELECT MSysIMEXSpecs.SpecName, MSysIMEXColumns.*
FROM MSysIMEXColumns INNER JOIN MSysIMEXSpecs 
     ON MSysIMEXColumns.SpecID = MSysIMEXSpecs.SpecID


来源:https://stackoverflow.com/questions/36222661/can-i-programmatically-get-at-all-import-export-specs-in-ms-access-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!