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.
| Author |
Topic |
|
Ile
Starting Member
4 Posts |
Posted - 2002-09-27 : 07:48:11
|
| Hi,I have written a procedure with a bulk insert command. If an error occurs the whole procedure fails. I should be able to prevent the procedure from failing and give back a return code or error code or something like that. Is there a possibility to do so? |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2002-09-27 : 07:52:46
|
| What sort of errors?You can set a max errors on the insert so it will carry on.The bulk insert should return after completion but depends on the error.Probably what you want is to run the SP from a client e.g. VB which can then see if the SP has terminated normally or nor and return the error.==========================================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. |
 |
|
|
Ile
Starting Member
4 Posts |
Posted - 2002-09-27 : 07:57:36
|
| exactly. (no matter what error occured) |
 |
|
|
|
|
|