hi all,
i have this stored procedure
i need to pass parameters to this procedure and how it should be?
create procedure insert_record(@e int,@n nvarchar(50),@s smallmoney)
as
begin
begin try
if exists(select * from emp_temp where eno=@e)
raiserror('Employee is already exists',15,1)
if @s<3000
raiserror('sal>3000',15,1)
insert into emp_temp values(@e,@n,@s)
end try
begin catch
print error_message()
end catch
end