Bonjour,
J'ai une procédure stockée dans une base sql server express.
Code :
CREATE procedure [dbo].[ListeProduit]
@NumAutoProd int
AS
SELECT * FROM Produit
WHERE NumAuto = @NumAutoProd
Quand je l'exécute dans sql server, j'ai pas de problème.
Mais des que j'essaie de l'exécuter en asp, je reçois cette erreur
ADODB.Command error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
je ne comprends pas d'où vient mon erreur.
Code :
Set cmd = Server.CreateObject("ADODB.Command")
Set cmd.ActiveConnection = conn
cmd.CommandText = "ListeProduit"
cmd.CommandType = adCmdStoredProc
cmd.Parameters.Refresh
cmd.Parameters.Append cmd.CreateParameter("RetVal", adInteger,adParamReturnValue)
cmd.Parameters.Append cmd.CreateParameter("NumAutoProd", adInteger,adParaminput)
cmd.Execute
d'apres l'erreur elle vient cmd.CommandType = adCmdStoredProc.
Je suis completement perdu.
Merci pour votre aide