Hi,
I have a stored procedure where i pass two parameter
1. the field Name and
2. the Value
from an ASP page.
The Code below:
CREATE PROC storedProcName
@fldName varchar
@fldVal varchar
as
BEGIN
Select * FROM tableName WHERE @fldName = @fldVal
END
This does not return me any data....where it has to.
But when I replace the @fldName with the actual field name it works...
Pls Help..
Thanks in advance.
Raj.
I have a stored procedure where i pass two parameter
1. the field Name and
2. the Value
from an ASP page.
The Code below:
CREATE PROC storedProcName
@fldName varchar
@fldVal varchar
as
BEGIN
Select * FROM tableName WHERE @fldName = @fldVal
END
This does not return me any data....where it has to.
But when I replace the @fldName with the actual field name it works...
Pls Help..
Thanks in advance.
Raj.