Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Stored Procedure not working

$
0
0

hi,

I have written the following stored procedure:

set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go


ALTER procedure [dbo].[spUpdateIndividualUser] (
@Username varchar (50),
@Password varchar (50),
@Email varchar (50),
@Mobile varchar (50),
@Country varchar (50),
@City varchar (50),
@Receivesms varchar (50)
)
as
begin
update IndividualUser set
 	Password = @Password ,
	Email=@Email,
	Mobile=@Mobile,
	Country=@Country,
	City=@City,
	Receivesms=@ReceiveSms
where
	UserName=@Username
   
end

when I Execute the update I get the following error:

Msg 137, Level 15, State 2, Line 2
Must declare the scalar variable "@Password".

please help to solve this matter.

regards.


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>