Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: passing several parameters using a single variable


Message #1 by rrrabe@y... on Tue, 28 Nov 2000 16:12:18 -0000
Hello everbody,



I need your opinion again.



I am passing several parameters to a stored procedure using a single

variable named "objParam".  With this method, is the program stable?

("tanggapComp" has the value coming from a textbox.)



Here it is:

set objParam = objCommand.CreateParameter("compName", adVariant,

adParamInput, 20)

objCommand.Parameters.Append objParam

objCommand.Parameters("compName") = tanggapComp



set objParam = objCommand.CreateParameter("acronym", adVariant,

adParamInput, 20)

objCommand.Parameters.Append objParam

objCommand.Parameters("acronym") = tanggapComp



thank you very much for your kind responses.

Bay


  Return to Index