sql server - Showing Error After Declaring Variable -
showing error after declaring variable.
incorrect syntax near 'usp_crud_jwelorders2'.
when run code running fine
usp_crud_jwelorders2 @operation = 'displayhelper' ,@memberid = 'lym37361224' , @orderdt='01/01/2009'
but after declaring variable shows error.
declare @memberid_ varchar(20); set @memberid_ = 'lym37361224'; usp_crud_jwelorders2 @operation = 'displayhelper' ,@memberid = @memberid_ , @orderdt='01/01/2009'
i think usp_crud_jwelorders2
stored procedure. add exec
before usp_crud_jwelorders2
in modified script.
declare @memberid_ varchar(20); set @memberid_ = 'lym37361224'; exec usp_crud_jwelorders2 @operation = 'displayhelper' ,@memberid = @memberid_ , @orderdt='01/01/2009'
Comments
Post a Comment