I really think this is a simple fix, but I didn't find any solution on the Internet (at least none I could understand).
I have this stored procedure:
ALTER PROC [dbo].[GetCard](
@Input varchar(50),
@Input2 varchar(50)
)
AS
SELECT * FROM Main WHERE @Input = @Input2;
But when I go:
GetCard 'CardName', 'Text';
SQL doesn't quite understand that @Input
is a column. What do I have to change? Does it need any special syntax?