Advanced Stored procedure...
Hello,
(Excuse my english, i'm a french man)
I want to make a stored procedure on that model :
CREATE Procedure SGCP_GetEleveArgs
(
@Arg1 nVarChar,
@Val1 nVarChar
)
AS
SELECT *
FROM Eleve
WHERE @Arg1 = @Val1
So you understand that i want to pass my argument (@Arg1) as a field of a column.
but it gives :
WHERE 'Nom' = 'Dupont'
but i want to have :
WHERE Nom = Dupont
for it to work.
Have you an idea to solve that problem ?
Thanx

Adam ErstelleRank #3,005 · 479 reputationPosted May 25, 2004, 6:38 AM EDT
mickaelterrien13 reputationPosted May 25, 2004, 7:43 AM EDT
spgilmoreRank #1,616 · 964 reputationPosted May 25, 2004, 12:59 PM EDT
mickaelterrien13 reputationPosted May 26, 2004, 11:13 PM EDT
spgilmoreRank #1,616 · 964 reputationPosted May 27, 2004, 2:15 PM EDT
mickaelterrien13 reputationPosted May 28, 2004, 5:48 AM EDT
purushoth_garadi8 reputationPosted May 28, 2004, 10:08 AM EDT