Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 4th, 2006, 03:11 AM
Authorized User
 
Join Date: Jul 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help to trap errors

Dear friends,

I have created a Stored Procedure in sql server2000.
I found that the @@error is unable to catch errors occured while assigning a value to a local variable with set operator.
Is there any other way out to catch such errors.

thanks in anticipation


 
Old October 6th, 2006, 11:05 AM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

How are you using @@error? Can you provide an example?

Scott Klein
Author - Professional SQL Server 2005 XML
http://www.wrox.com/WileyCDA/WroxTit...764597922.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
chap 2 about trap INT speedwolf BOOK Beginning Linux Programming, 3rd Edition 0 March 13th, 2008 01:02 AM
GetObject Trap bostek VBScript 2 November 24th, 2004 02:39 AM
Disable/Trap msgBox?? adelgado Access VBA 1 September 13th, 2004 03:54 PM
How can I trap for a connection error [email protected] Classic ASP Databases 1 April 27th, 2004 03:09 AM
Trap for empty recordset in a SP Mitch Access VBA 2 September 5th, 2003 04:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.