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
 Transact-SQL (2000)
 duplicate key ignored

Author  Topic 

dgaylor
Yak Posting Veteran

54 Posts

Posted - 2003-09-30 : 13:16:48
Is there any way to stop this warning from being returned in a stored procedure. We want to be able to handle it/ingore it in the stored procedure and not have it sent back through ado. Thanks in advance.

Server: Msg 3604, Level 16, State 1, Line 1
Duplicate key was ignored.

X002548
Not Just a Number

15586 Posts

Posted - 2003-09-30 : 13:41:04
Yeah...do Error handling

IF @@ERROR <> 0
BEGIN
..handle error
END


Brett

8-)

SELECT @@POST FROM Brain ORDER BY NewId()

That's correct! It's an AlphaNumeric!
Go to Top of Page
   

- Advertisement -