Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error with call to stored procedure....

Status
Not open for further replies.

Mayoor

Programmer
Joined
Jan 16, 2004
Messages
198
Location
GB
Im getting this error

Code:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14' 

[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near ','. 

/etads/rptgrpchange(new).asp, line 20
code]

line 20 is

[code]
myConn.Execute ("usp_UpdateRptGrpPrimDeltest " & lngRptGrpID & ",'" & Request("cbo_PrimDel" & rst("lngRptGrpID")) & "'")

Please can someone help with this probelm.....?
 
try this:

Code:
myConn.Execute ("usp_UpdateRptGrpPrimDeltest " & lngRptGrpID & ",'" & Request("cbo_PrimDel") & "','" & rst("lngRptGrpID")) & "'")
 
Or try :
myConn.Execute ("usp_UpdateRptGrpPrimDeltest (" & lngRptGrpID & ",'" & Request("cbo_PrimDel" & rst("lngRptGrpID")) & "')")



[thumbsup2]DreX
aKa - Robert
 
or try this:

Code:
set cmdProj = server.CreateObject("ADODB.Command")
   with cmdProj
	.ActiveConnection = db_connstring
	.CommandText = "usp_UpdateRptGrpPrimDeltest"
	.CommandType = adCmdStoredProc
	.Parameters.Refresh 
	.Parameters("@lngRptGrpID")= lngRptGrpID
	.Parameters("@cbo_PrimDel") = Request("cbo_PrimDel")
	set rsRec = .Execute (ret, , adExecuteNoRecords)
  end with
//use rsRec with whatever
  set rsRec = nothing
  set cmdProj = nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top