Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Opening recordset


Message #1 by "Christian Dygaard" <cdygaard@w...> on Wed, 13 Feb 2002 17:08:10 +0100
Hello fellow programmers.



I'm having a problem calling a stored procedure when I'm opening my

recordset. The error I'm getting is:



Syntax Error

/AAO/gbsignedin.asp, line 143, column 32

objRS.Open up_parmins_Guestbook('" & strFirstname & "', '" & strLastname & _

-------------------------------^



Line 143 - 146 looks like this:



objRS.Open "up_parmins_Guestbook('" & strFirstname & "', '" & strLastname &

_

      "', '" & strFavoritHomepage & "', '" & strEmailAddress & "', '" &

strComment & _

      "', '" & strUsername & "', '" & strPassword & "', '" & strPortrait & _

      "')", objConn, adOpenForwardOnly, adLockReadOnly, adCmdStoredProc



Regards Christian Dygaard



Message #2 by "Ken Schaefer" <ken@a...> on Thu, 14 Feb 2002 16:44:56 +1100
If up_parmins_GuestBook is the name of your sproc, you need to put it into

", because it is literal text.

Otherwise, you're telling ASP to call a routine called up_parmins_Guestbook,

which I suspect does not exist.



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: "Christian Dygaard" <cdygaard@w...>

Subject: [asp_databases] Opening recordset





: Hello fellow programmers.

:

: I'm having a problem calling a stored procedure when I'm opening my

: recordset. The error I'm getting is:

:

: Syntax Error

: /AAO/gbsignedin.asp, line 143, column 32

: objRS.Open up_parmins_Guestbook('" & strFirstname & "', '" & strLastname &

_

: -------------------------------^

:

: Line 143 - 146 looks like this:

:

: objRS.Open "up_parmins_Guestbook('" & strFirstname & "', '" & strLastname

&

: _

:       "', '" & strFavoritHomepage & "', '" & strEmailAddress & "', '" &

: strComment & _

:       "', '" & strUsername & "', '" & strPassword & "', '" & strPortrait &

_

:       "')", objConn, adOpenForwardOnly, adLockReadOnly, adCmdStoredProc



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




  Return to Index