Re: BETWEEN statement
- From: "William \(Bill\) Vaughn" <billvaRemoveThis@xxxxxxxxxx>
- Date: Fri, 29 Jul 2005 16:38:00 -0700
Yup, most of my books use SQL Server as the example test-bed, but the
ADO.NET book discusses all of the interfaces and includes comments on other
platforms as well. DB2? Ah, no specific references to it, but there are
plenty of general guidelines that apply across the board.
MSDE and SQL Express are "PC database" types too--and free.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"Darrell Wesley" <DarrellWesley@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:41344236-958A-4624-BF73-0513CE739930@xxxxxxxxxxxxxxxx
> Bill,
>
> Which one of your books are you referring to? Does it cover something
> other
> than SQL Server. (Poor guys like me only have access to DB2 on a iSeries
> box
> or one of the other PC database types such as MDB or DBF files)
>
> "William (Bill) Vaughn" wrote:
>
>> Again, the Command object Parameters collection is the answer here too.
>> It
>> deals with the issues you expect and a number you don't.
>>
>> --
>> ____________________________________
>> William (Bill) Vaughn
>> Author, Mentor, Consultant
>> Microsoft MVP
>> www.betav.com/blog/billva
>> www.betav.com
>> Please reply only to the newsgroup so that others can benefit.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> __________________________________
>>
>> "bbdobuddy" <bbdobuddy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:70B33591-BDDC-45E3-9186-DB44D965DD99@xxxxxxxxxxxxxxxx
>> > Hi,
>> >
>> > I have a connection to a SQL Database but this line of code keeps
>> > giving
>> > me
>> > errors and I don't know why. StartDate and endDate are dateTime
>> > objects
>> >
>> > objCommand.CommandText = "SELECT * FROM TICKETS WHERE daterecordadded
>> > BETWEEN " & StartDate & " and " & endDate & " ORDER BY SEQNUM ASC"
>> >
>> > This doesn't work either:
>> >
>> > objCommand.CommandText = "SELECT * FROM TICKETS WHERE daterecordadded
>> > BETWEEN #" & StartDate & "# and #" & endDate & "# ORDER BY SEQNUM ASC"
>> >
>> > Any help would be appreciated
>> > Thanks
>> > Brian
>> >
>>
>>
>>
.
- References:
- Re: BETWEEN statement
- From: William \(Bill\) Vaughn
- Re: BETWEEN statement
- From: Darrell Wesley
- Re: BETWEEN statement
- Prev by Date: Re: BETWEEN statement
- Next by Date: Re: BETWEEN statement
- Previous by thread: Re: BETWEEN statement
- Next by thread: Re: BETWEEN statement
- Index(es):
Relevant Pages
|
|