Actually, yes it's an error message returned by Oracle but both example SQL statements I provided earlier will execute flawlessly in any enviornment BUT my vb.net code. I've tried both statements in SQL*PLUS, SQL Worksheet, and Tools For Oracle(aka Tora) with no problems at all. Only when using VB.NET does it blow up on me. All this leads me to believe that it is VB.NET that is experiencing a problem. The parametrised query is a good idea but makes no difference....as long as I insist on asking for more than a single days worth of data in 2003 or 2004 it will not execute. Can anyone at all point me in a different direction
Again I thank you all in advance for what advice you may send me and to those who have replied I am in your debt! Thank you
----- Miha Markic [MVP C#] wrote: ----
Hi Malcolm
You are talking about Oracle problem that has nothing to do with VB.NET
As a better approach you might use parametrised query
Something like
select * from tclaim where (process_date >= :fromDate) and (process_date
:toDate
cmd.Parameters.Add(":fromDate", OracleType.DateTime).Value = fromDate
insert your date her
cmd.Parameters.Add(":toDate", OracleType.DateTime).Value = toDate ' inser
your date her
--
Miha Markic [MVP C#] - RightHand .NET consulting & software developmen
miha at rthand co
www.rthand.co
"Malcolm Diaz" <md***@planvista.com> wrote in messag
news:AA**********************************@microsof t.com..
Hello all
Thank you all in advance. I am completely at a loss here with thi
error. I am developing a simple interface that will allow a user t
enter,execute and view results from a SQL statement to our oracle database
I have found that I can not query more than a single day at a time whe
using a date > 12/31/2002 as my where clause For example select * from tclaim where (process_date >= to_date('02/01/04'
'mm/dd/yy')) and (process_date < to_date('02/05/04','mm/dd/yy') select * from tclaim where process_date >= '01-FEB-2004' and process_dat
< '05-FEB-2004 Neither one of the above statements will execute unless I make the yea
less than 2003 in my dates or only ask to return one day. I have poured ove
several sites and articles without so much as a clue why this is happening
Any help would be greatly appreciated as I am desparately trying to showcas
VB.NET to my employers and not being able to query data using a date fiel
in this calendar year is sure going to make this a hard sell Thank you!