Re: query with parameters and asp
From: Marcelo Marchesoni (mmarches_at_adinet.com.uy)
Date: 03/24/04
- Next message: Scott: "Re: ADO CommandTimeout on query using linked server"
- Previous message: David Macaskill: "Re: OLE DB provider fails to load"
- In reply to: Ross McKay: "Re: query with parameters and asp"
- Next in thread: Ross McKay: "Re: query with parameters and asp"
- Reply: Ross McKay: "Re: query with parameters and asp"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 19:57:06 -0300
thanks for your reply
.CreateParameter("fechainicial",adDate)
when the server process this sentence sends an error
"Ross McKay" <rosko@zeta.NOT.THIS.BIT.org.au> escribió en el mensaje
news:kb0v501c2nhoaqcpuobmj9ip83fjmrahht@4ax.com...
> On Mon, 22 Mar 2004 19:15:36 -0300, "Marcelo Marchesoni" wrote:
>
> >I try to get the next query with parameters.
> >I can't pass the parameters values.
>
> G'day Marcelo,
>
> Why can't you pass the values? What error do you get?
>
> >' .Parameters("fechainicial").Value=Request.Form("fechainicial")
> >' .Parameters("fechafinal").Value=Request.QueryString("fechafinal")
>
> What have you done to ensure that the format of these values from ASP is
> acceptable to convert into a date?
>
> I strongly recommend you ensure that these strings are first converted
> into either a Date or a Null (not an empty string!), before passing them
> to the parameter object.
>
> cheers,
> Ross.
> --
> "There is more to life than simply increasing its speed." - Mahatma Gandhi
- Next message: Scott: "Re: ADO CommandTimeout on query using linked server"
- Previous message: David Macaskill: "Re: OLE DB provider fails to load"
- In reply to: Ross McKay: "Re: query with parameters and asp"
- Next in thread: Ross McKay: "Re: query with parameters and asp"
- Reply: Ross McKay: "Re: query with parameters and asp"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|