×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

update and insert in the same session

update and insert in the same session

update and insert in the same session

(OP)
HI,

I've a mapping which update a target A(update orverride)
and insert data in another target B.
In my session,i've choose the option : Data driven;
For target A i choose choose : update as update
For target B i choose : insert

When i run the session, line are inserted in target B but noting are update in target A;
I've this error
WRT_8117 : ERROR : target table [A] does not allow insert.
Row # [0] in bad file

Can someone help me ?

Thanks

RE: update and insert in the same session

Do you have an update transformation to the update target?

"I think we're all Bozos on this bus!" - Firesign Theatre jester

RE: update and insert in the same session

(OP)
i've no update strategy transformation,
i've just my 2 sources and 2 targets.
only in the session, i've precised : Data driven and for each target, if it's only "update as update" or "Insert" in the properties.

If i use an update transformation , it will be run ?
With an update transformation, can i override the update query in the target ?

thanks

RE: update and insert in the same session

Yes, you need to use the update transform. Without it, PC thinks it's an insert. The update transform can do updates, inserts and deletes. Set the properties to DD_UPDATE to tell it to do the update.  

"I think we're all Bozos on this bus!" - Firesign Theatre jester

RE: update and insert in the same session

Some experts will advice you to stay away from data-driven. Instead , split the mapping into 1 for updates and 1 for inserts. This way you can use the optimum for inserts (namely block inserts against row-by-row) where speed is not reduced by mixing with row-by-row updates.
The mappings should of course include a lookup that performs a check whether a key exists)  

Ties Blom
 
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close