B M Suchitra

B M Suchitra

  • NA
  • 507
  • 418.7k

Problem with stored procedure

Dec 21 2010 3:04 AM
Hi friends,
I am getting an error,can someone plzz point out where i am going wrong:
Must declare the scalar variable "@UserID".

Stored procedure is:

CREATE PROCEDURE dbo.spRetrieveBalance AS
SELECT Balance from Account WHERE
UserID=@UserID

Thank you



Answers (5)