Visual Basic - strore procedure sin usar el objeto command

Life is soft - evento anual de software empresarial
 
Vista:

strore procedure sin usar el objeto command

Publicado por Rafael (61 intervenciones) el 17/08/2001 15:32:27
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