Key violations and the Multiphase Data Pump

  • Hello!

    I am trying to set up a package that would insert new user accounts from an Excel file into the appropriate SQL2k table. I'd like to include some error handling to catch when a new record tries to use a taken userID (which is the prmary key in my table). Ideally, the package would return a list of userIDs that were already in the DB. Any thoughts?

  • Simplify. I'd suggest importing the file to a working table, tagging ID's that already exist, appending the rest. Then you can email the 'bad' ones to yourself, assign new ids, whatever.

    Andy

  • Makes sense. The funny thing is, that basically mirrors how I was doing it manually before I decided to get fancy....

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply