Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL passthrough when error is a unique key violation.
Message
From
31/05/2001 04:45:29
 
 
To
30/05/2001 16:36:51
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00512889
Message ID:
00513035
Views:
13
William,
How do you update the remote table? If you're using an updatable view, then a TABLEREVERT() should do.

>Has anyone had this problem. I am testing my error traping one test I set up is a test that will create a unique key violation. I do this through a passthrough.
>
> I run the test I get a return of -1 and the error message says I have violated a unique key constraint, this is good.
>
> The problem is, the passthrough will not let go of the last error.
>I use a passthrough to write this error to an error table I have created, but it will not write to the table because the unique key violation is still in effect.
>
> How do I get ODBC to let go of this unique key error and use the passthrough to write this error message to my error table.
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform