i have a procedure like this
CREATE PROCEDURE GetFieldPath @FieldName varchar(10), @ReturnField varchar(10) output
AS
Select @ReturnField=@FieldName FROM TblPath
it doesn't work , i want to have field as a variable to pass it different field
which part is wrong?
CREATE PROCEDURE GetFieldPath @FieldName varchar(10), @ReturnField varchar(10) output
AS
Select @ReturnField=@FieldName FROM TblPath
it doesn't work , i want to have field as a variable to pass it different field
which part is wrong?