Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL server 2000 - sp On Error ?
Message
From
08/07/2003 01:44:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
SQL server 2000 - sp On Error ?
Miscellaneous
Thread ID:
00807841
Message ID:
00807841
Views:
54
Hello all,

I am trying to write a store procedure on SQL server and I am looking a semilar ON ERROR command of VFP.

Example :

VFP code
========
nErrorFlag = 0
ON ERROR nErrorFlag = 1
APPEND from .... type delimited with ..

IF nErrorFlag = 1
MESSAGEBOX('Error When Appending')
RETURN
ENDID

Note : the above code cover also the case of corrupted or bad structure incoming files


In SQL Server SP I am using BULK INSERT command. How can be sure that what when something goes wrong the SP will not Stop ?


Thanks in Advance
Petros
Next
Reply
Map
View

Click here to load this message in the networking platform