Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Recibir un cursor desde un store procedure

6 views
Skip to first unread message

Diego

unread,
Jul 3, 2002, 6:41:28 PM7/3/02
to
Hola a todos, tendo un problema con una rutina de vb que
me ejecuta un store procedure de SQL Server, el cual tiene
dos parámetros de entrada y uno de salida, que es un
cursor. Cuando ejecuto la rutina me genera el
error "Arguments are of the wrong type, are out of
acceptable range, or are in conflict with one another.
".

La funcion es la siguiente:

Dim ObjCommand As New ADODB.Command
Dim rsD As New ADODB.Recordset
Dim msSQL As String

ObjCommand.ActiveConnection = gstrCadenaConexion
ObjCommand.CommandText = "spTraeInstituciones"
ObjCommand.CommandType = adCmdStoredProc

ObjCommand.Parameters.Append ObjCommand.CreateParameter
("CodDANE_p", adBSTR, adParamInput, 15, CodDANE)
ObjCommand.Parameters.Append ObjCommand.CreateParameter
("CodJorna_p", adInteger, adParamInput, , CodJorna)
ObjCommand.Parameters.Append ObjCommand.CreateParameter
("Datos_p", adIUnknown, adParamOutput, , rsD)

ObjCommand.Execute

Set ObjCommand = Nothing

Set TraeInstitucion = rsD
.....

¿Cómo hago para tomar el cursor que envía el store
procedure?

Gracias de antemano

Mauricio Henao

unread,
Jun 13, 2016, 9:34:23 AM6/13/16
to
Hola, se que ha pasado tiempo, pero ... lo solucionaste?
Me podrias decir como lo hiciste?

Gracias!
0 new messages