Visual Basic - Pasar parametros a un store procedure sin command

Life is soft - evento anual de software empresarial
 
Vista:

Pasar parametros a un store procedure sin command

Publicado por Rafael (61 intervenciones) el 17/08/2001 15:05:40
como pasarle parametros al strore procedure sin usar el objeto command hasta ahora se me ha recomendado hacerlo así hace asi:

Set cmd = New ADODB.Command
With cmd
.CommandText = \"pSuscripcion_Tarifa\"
.CommandType = adCmdStoredProc
.Parameters.Append .CreateParameter(, adTinyInt, adParamInput, , bMeses)
.Parameters.Append .CreateParameter(, adBoolean, adParamInput, , fEsNacional)
.Parameters.Append .CreateParameter(, adBoolean, adParamInput, , fEsDirecto)
Set .ActiveConnection = DB
.Execute

End With
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

RE:Pasar parametros a un store procedure sin comma

Publicado por Fernando Valdez (4 intervenciones) el 17/08/2001 22:43:52
Dim a As ADODB.Command

Set a = New ADODB.Command
a.CommandType = adCmdText
a.CommandText= exec "nombre del store " & parametro1 & parametro2
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar