• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

DataWriter Replace Into?

robdog

Well-known member
#1
I have a primary key set for a column and I want to use the data writer to do a replace into. Has anyone attempted this before? Is the functionality already there? If so, what should the call order be?

Thanks.
 

Marcus

Well-known member
#2
You would have to check if the record exists, if not then save the data without setting setExistingData(). If the record already exists, you add setExistingData() to update your existing record.

The model is there to use any functions, like "REPLACE INTO".