I am using CLASSIC ASP with a stored procedure, the stored procedure has a date field that is not required.
I am trying to insert when there is no date entered on my form.
I have tried “”, Null, NULL, vbNull.
edit: I am setting DOB to “” in the function call for this:
DOB = ""
if DOB = "" then
DOB = ????
End if
Set paramId = cmdStoredProc.CreateParameter("@DOB", adDBDate, adParamInput,0,DOB)
cmdStoredProc.Parameters.Append paramId
This with sql server 2008.
Any help is appreciated.
Nullwould normally be the correct value in this scenario.Due lack of detail in the question I will guess.
Ulitmately you have a non-nullable DOB table field being assigned this null value at heart of the SP. That in turn is causing an error.