I am having a problem passing NULL to a stored procedure on a
MS SQL server. The code is ASP classic.
I builded the sql Command first then
remoteDB.Connection.Execute(sqlCommand, ,adCmdText)
My asp classic code to build the sqlCommand
sqlCommand = "procWebAddProspectOwner " & "1,25," &
"'" & "HHTitle" & "','" & "HHFirstName"
&"NULL"& "," &"NULL"
The response write to the web browser for debuging shows this
procWebAddProspectOwner
1,25,'HHTitle','HHFirstName',NULL,NULL
ADODB.Connection error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range,
or are in conflict with one another.
To trouble shoot I cut and paste this from the asp page into
the SQL Query Analyer and it works great.
procWebAddProspectOwner
1,25,'HHTitle','HHFirstName',NULL,NULL
any ideas:
David