Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Trapping Error during Bulk Insert

Author  Topic 

rmadhu
Starting Member

2 Posts

Posted - 2002-09-16 : 23:57:40
Hi,

I am using 'Bulk Insert' to import the data from text file to a table in the store procedure. The procedure terminates if there is any error during the import process. I want to avoid the termination of procedure since I have to update a flag in a table based on the success or failure. Could any help in this regard.


Thanks
rmadhu


R. MAdhusudhanan

nr
SQLTeam MVY

12543 Posts

Posted - 2002-09-17 : 06:58:48
You could set the flag to failed before the import then update it to success on successful completion.


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -