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 2005 Forums
 .NET Inside SQL Server (2005)
 How to handle errors

Author  Topic 

radhe
Starting Member

6 Posts

Posted - 2008-07-11 : 08:38:53
Hello friends I have created a stored procedure with wrong syntax
How to handle that with @@ERROR or Raiseanerror

What @@ represents......

The wrong procedure is:

create procedure sp_myproc
(
@x int,
@y int,
@res int output
) as

Begin set @res = @x + @y

Kindly help.

Regards,
Bharath

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-07-11 : 08:50:37
drop the BEGIN word.
or add an END to the end.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -