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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor Error Trapping.

Status
Not open for further replies.

JMB70

Programmer
Mar 20, 2002
10
GB
Hi, I'm new to this place (and to sql server), I'm having trouble and a friend reccomended I ask here... hope someone can help?

I have an insert statement that is trawling through thousands of records from the source table.

When the cursor finds a bad record from the source(e.g. a null foreign key id) it terminates and then moves on to the next record.

Is there a way I can get the pid recorded in a table?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top