ASP.NET - Duda con objeto command

 
Vista:

Duda con objeto command

Publicado por Jc (1 intervención) el 26/10/2006 16:13:19
Tengo esto:

set Cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = cntion
Cmd.CommandType = adCmdStoredProc
'Cmd.CommandType = adCmdText
Cmd.CommandText = "SP_INSERT_USUARIOS (?,?,?,?,?,?,?,?,?,?,?,?)"
Cmd.Prepared = True

'El número de Identificación
Cmd.Parameters.Append(Cmd.CreateParameter("parIdInstitucion", adInteger, adParamInput, 6, intIdInstitucion))
Cmd.Parameters.Append(Cmd.CreateParameter("parIdUsuario", adInteger, adParamInput, 6, IdUser))
Cmd.Parameters.Append(Cmd.CreateParameter("parRut", adVarChar, adParamInput,10, strRutUser))
Cmd.Parameters.Append(Cmd.CreateParameter("parDigito", adVarChar, adParamInput, 1, strDigUser))
Cmd.Parameters.Append(Cmd.CreateParameter("parNombre", adVarChar, adParamInput,50, strNombreUser))
Cmd.Parameters.Append(Cmd.CreateParameter("parPaterno", adVarChar, adParamInput,50, strPaternoUser))
Cmd.Parameters.Append(Cmd.CreateParameter("parMaterno", adVarChar, adParamInput,50, strMaternoUser))
Cmd.Parameters.Append(Cmd.CreateParameter("parTelefono", adVarChar, adParamInput,20, strFonoUser ))
Cmd.Parameters.Append(Cmd.CreateParameter("parEmail", adVarChar, adParamInput,30, strEmailUser ))
Cmd.Parameters.Append(Cmd.CreateParameter("parCargo", adInteger, adParamInput, 6, intCargoUser ))
Cmd.Parameters.Append(Cmd.CreateParameter("parId_Perfil", adInteger, adParamInput, 6, intTipoUser ))
Cmd.Parameters.Append(Cmd.CreateParameter("parNuevoId", adInteger, adParamOutput,6))
Cmd.Execute()

el sistema me entrega este error:
No se han especificado valores para algunos de los parámetros requeridos

Estoy absolutamente convencido de que todos los parametros contienen valor.
Incluso elimine un signo de interrogación del comando , a cuanta del parámetro de salida y el mensaje es el mismo...

Ayuda por favor...!!!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder