Problem with Import/append

F

FP1

I'm doing an import to an existing table from Excel. When I do it
manually, it works. I get the message about key violations, but then select
'yes' to do it anyway.

Running the same functon with the "TransferSpreadsheet" function with same
options, it doesn't import the sam records, only those that don't create
key violations. Is there a way to programmatically override the key
violation warnings?
 
K

Klatuu

No. And, you really should not be adding records the create key violations.
This is a much larger problem than the warning message. If it is acceptable
to import these records, then the index should not require unique values
unless it is the primary key. If it is the primary key, then either it
should not be the primary key or you shouldn't import the records.
 
F

FP1

No. And, you really should not be adding records the create key
violations. This is a much larger problem than the warning message.
If it is acceptable to import these records, then the index should not
require unique values unless it is the primary key. If it is the
primary key, then either it should not be the primary key or you
shouldn't import the records.

Thanks, Dave. I can't change the database structure. I need to import the
records, since I'm doing a manual replication (original tables columns splt
into two tables). I presume the problem is the foreign keys, which I'm
trying to get around by walking down the indexes and importing the lowest
level tables first. Since I can't get around these programatically, I'll
just have to do those that violate it manually. I'm working towards a one-
time switch-over
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top