dbTalk Databases Forums  

Failed Inserts at Remote DB sent up to Consolidated DB during sync.

sybase.public.sqlanywhere.mobilink sybase.public.sqlanywhere.mobilink


Discuss Failed Inserts at Remote DB sent up to Consolidated DB during sync. in the sybase.public.sqlanywhere.mobilink forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jon
 
Posts: n/a

Default Failed Inserts at Remote DB sent up to Consolidated DB during sync. - 07-07-2006 , 11:55 AM






we run ASA8.0.2.4339

we've got a scenario where we are dumping the contents of
certain tables from the Consolidated database into text
files of the format 'insert into table_name...'. we are
then using the generic 'read' command at the remote to read
the insert statements. we *expect* many of these to fail
because the Remote database already contains those records,
thus we have ON_ERROR = 'off'...the problem for us is that
even when these inserts fail with a 'UNIQUE' (primary key)
at the Remote database, it seems that upon its next
synchronization that it attempts to send even these failed
inserts up to the Consolidated(where they then fail again,
obviously)..

is there a way to prevent failed statements at the Remote
database from going into the log file so the do not
replicate? with perhaps a dbeng8/dbmlsync switch or database
variable?

TIA

Reply With Quote
  #2  
Old   
Greg Fenton
 
Posts: n/a

Default Re: Failed Inserts at Remote DB sent up to Consolidated DB duringsync. - 07-07-2006 , 12:04 PM






Jon wrote:
Quote:
is there a way to prevent failed statements at the Remote
database from going into the log file so the do not
replicate? with perhaps a dbeng8/dbmlsync switch or database
variable?

I gotta say, I'd be VERY surprised if the behaviour you are describing
is actually happening. You are essentially saying that the engine is
logging a committed operation when that operation in fact fails.

I recommend you try building a very simple repro to prove that this is
(not) happening.

g.f
--
Greg Fenton
Random Dude
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.