Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to allow a statement to continue if an error occurs

Status
Not open for further replies.

GJP55

Technical User
Feb 2, 2003
220
GB
Is it possible to trap an error when it occurs in T-SQL and then continue with the statement ?

I have an insert statement that I would like to continue with the remaining records if fails on one (for example if one of the fields being inserted is the wrong data type).

Is this possible without going down the cursor route ?

Thanks


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top