|
Custom Data Sources and SQL Stored Procedures
hi all,
I am trying to setup some stored procedures so that we can use customer tokens in our scripts.
I have created this stored procedure:
CREATE PROCEDURE sp_Password
@usname varchar(20)
AS
SELECT Password
FROM Credentials
WHERE Username = @usname
But if l then execute the following queury
EXECUTE sp_Password 'Nicholas' l get the following error
Msg 201, Level 16, State 4, Procedure sp_password, Line 0
Procedure of function 'sp_password' expects parameter '@new', which was not supplied.
I am an SQL newbie so not sure where to go from here.
|