Re: query with parameters and asp
From: Ross McKay (rosko_at_zeta.NOT.THIS.BIT.org.au)
Date: 03/23/04
- Next message: A. Finkler: "Re: DBNETLIB error with ADO+SQL-Server2000"
- Previous message: William \(Bill\) Vaughn: "Re: Proxy between VB6 ADO and ADO.Net"
- In reply to: Marcelo Marchesoni: "query with parameters and asp"
- Next in thread: Marcelo Marchesoni: "Re: query with parameters and asp"
- Reply: Marcelo Marchesoni: "Re: query with parameters and asp"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 23 Mar 2004 00:18:00 GMT
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: A. Finkler: "Re: DBNETLIB error with ADO+SQL-Server2000"
- Previous message: William \(Bill\) Vaughn: "Re: Proxy between VB6 ADO and ADO.Net"
- In reply to: Marcelo Marchesoni: "query with parameters and asp"
- Next in thread: Marcelo Marchesoni: "Re: query with parameters and asp"
- Reply: Marcelo Marchesoni: "Re: query with parameters and asp"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|