I use the import wizard for importing data from Access 2010 database into SQL Server tables.
I try to import from tblMembers
which includes the most important column MiID
, which is used as a FK in different other tables.
It seems that in the Access tables some records do not have a valid MiID
due to former deletions of members, so the reference is broken.
When I try to import all data from tblMembers
into SQL Server I get an error:
The table
tblMembers
cannot be truncated as there are foreign key constraints referenced to it
(translated from German, so the error description might be slightly different)
I tried to list up all table names where MiID
is used as FK, as well as all constraint names, but I cannot see through what caused the problem, except the fact, that the server tables have already test data, but by ticking "delete rows in target table" (in the wizard) I think before inserting new data the existing ones are deleted and any non-matching PK/FK relation should vanish.
So, how can I solve the failing import?
What could still cause the failing?
Thanks any help Michael