Ask a Question related to ASP Database, Design and Development.
- Stewart Rogers #1
OLD ASP ... how to set a ADO param to Null I am doing a loop in which the Date field is sometimes
null
How do I update a Stored Proc parameter to null
I am looking for something like:
Cmd.Parameter("@NewDate").value = null
Thanks in advance,
Stewart Rogers
Stewart Rogers Guest
-
JSP tag <mm:param>
In Tomcat 5.5 , open this jsp page , I can't see " Hi brandon". So what's wrong ? Thanks. urldemo.jsp: <% session.setAttribute("username",... -
cf param
I am getting the error message."The required parameter FORM.UserName was not provided." I am providing a username, but it keeps giving me an this... -
.net client + Axis 1.1 server + wrapped param: null result
I have used the following settings in our web services: .net framework 1.1 web services client Axis 1.1 server (in wsdd file, set... -
url and param in php
"Ian.H " <[email protected]> ha scritto nel messaggio news:[email protected].. Php function list Sorry, but... -
Error: ?null? is null or not an object
eloine: That is a bogus error message in that it probably refers to something you have done (or not done) on the page. So, looking in the... - Manohar Kamath [MVP] #2
Re: OLD ASP ... how to set a ADO param to Null You can just leave the field out, without setting it to anything. The
following article might answer your question:
[url]http://www.vbrad.com/source/src_null_params_sp.htm[/url]
--
Manohar Kamath
Editor, .netWire
[url]www.dotnetwire.com[/url]
"Stewart Rogers" <[email protected]> wrote in message
news:1c5cb01c4527f$d5ebc860$[email protected]..> I am doing a loop in which the Date field is sometimes
> null
>
> How do I update a Stored Proc parameter to null
>
> I am looking for something like:
>
> Cmd.Parameter("@NewDate").value = null
>
> Thanks in advance,
>
> Stewart Rogers
Manohar Kamath [MVP] Guest
- Bob Barrows [MVP] #3
Re: OLD ASP ... how to set a ADO param to Null Stewart Rogers wrote:
If you are not using a variable, then you don't have to do anything.> I am doing a loop in which the Date field is sometimes
> null
>
> How do I update a Stored Proc parameter to null
>
> I am looking for something like:
>
> Cmd.Parameter("@NewDate").value = null
>
if <date supplied> then
Cmd.Parameter("@NewDate").value = #6/15/2004#
End if
However, if you are doing something like this:
Cmd.Parameter("@NewDate").value = datevariable
Then you need to set datevariable to null before setting the parameter
value:
if <no date supplied> then
datevariable = null
End if
Cmd.Parameter("@NewDate").value = datevariable
HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest




