I have a project here the goal is to merge multiple Access DB’s into one SQL Server db. Some of the records in the Access DB are autonumber, and will not be unique across all the DB’s.
We are currently working on modifying those autonumber fields programmaticaly to being number fields. The adjusting and allowing access to cascade those changes through before appending all those tables through to SQL server.
Im aware of the getSchema() for access, but can we modify the schema to remove an autonumber from a field?
Failing that, does anyone have any brilliant ideas on how to accomplish our task? Or done anything similar?
Regards
You can use DDL:
EDIT re COMMENT
You need to Drop a relationship before you change the field type, but a primary index is fine:
The constraint will probably be called something on these lines, but you can use ADOSchemas to get the names of the constraints (relationships).