Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: returning recordsets to vb passing parms to sql stored procedure


Message #1 by "Bill Robinson" <bill.robinson@s...> on Mon, 23 Oct 2000 14:27:08 +0100
sql needs single quotes around the string... like this

objStoredProcRS.Open pSPName & " ('" & parmString & "')", adoConn,
adOpenKeyset, adLockReadOnly, adCmdStoredProc

or, (parentheses not needed)

objStoredProcRS.Open pSPName & "'" & parmString & "'", adoConn,
adOpenKeyset, adLockReadOnly, adCmdStoredProc

  Return to Index