I get the following error when trying to pass a date to a stored procedure:
Microsoft OLE DB Provider for SQL Server error '80040e14'
Line 1: Incorrect syntax near '/'.
/testing/storedproc2.asp, line 16
My call to the procedure is:
getdate = "06/09/2006"
SET rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Exec getexpiring " & getdate, con
response.write rs("domain_sld")
my stored procedure is:
CREATE proc getexpiring
@thedate datetime
AS
SELECT * FROM mytable WHERE expireationdate <= @thedate
GO
Can anyone help me with this?
Microsoft OLE DB Provider for SQL Server error '80040e14'
Line 1: Incorrect syntax near '/'.
/testing/storedproc2.asp, line 16
My call to the procedure is:
getdate = "06/09/2006"
SET rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Exec getexpiring " & getdate, con
response.write rs("domain_sld")
my stored procedure is:
CREATE proc getexpiring
@thedate datetime
AS
SELECT * FROM mytable WHERE expireationdate <= @thedate
GO
Can anyone help me with this?