I am trying to export a table from MS Access (2007) to DB2 (9.7 LUW) using ODBC. I can do this, as long as I export the table into my own schema.
However, I would like to export the table to another schema. How can I get Access to put the table into another schema? In Db2, the table foo within schema bar is normally referred to as bar.foo. However, if I enter this as the target to export to, Access gives me an error:
The object name ‘bar.foo’ you entered doesn’t follow Microsoft Access object-naming rules.
This is because it won’t accept a period in the table name. Does anyone know how I can overcome this limitation? I can just copy the table over after the export, but some other users don’t have permission to create tables in their own schema; thus, this is preventing them from exporting from Access.
Thanks for your help.
Remou suggested using a query like this:
I believe something similar could be made to work for DB2. I suggest trying this if anyone needs a solution. I have decided to stick with my current kludgy approach, however. It is a shame that Access’s export feature can’t do this for such a dumb reason.