473,395 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Trying to do a between clause with webdav code

I am trying to do a between clause but it is not working, where am i going
wrong?

TheScope = "('deep traversal of
""http://myserver/exchange/folder/inbox/""')"

SelectSQL = " ""DAV:displayname"", " & _
" ""urn:schemas:httpmail:datereceived""," & _
" ""urn:schemas:httpmail:displaycc""," & _
" ""urn:schemas:httpmail:displayto""," & _
" ""urn:schemas:httpmail:fromemail""," & _
" ""urn:schemas:mailheader:received""," & _
" ""urn:schemas:httpmail:sendername""," & _
" ""urn:schemas:mailheader:subject""," & _
" ""urn:schemas:httpmail:textdescription""," & _
" ""urn:schemas:httpmail:htmldescription"" "

Dim DateRng1
Dim DateRng2

DateRng1 = " >= CAST(""2005-04-20T18:29:00.925Z"" as 'dateTime')"
DateRng2 = " <= CAST(""2005-04-20T18:29:23.925Z"" as 'dateTime')"

' Build the SQL query.
strQuery = "<?xml version=""1.0""?> <D:searchrequest xmlns:D =
""DAV:"" > " & _
"<D:sql>SELECT " & SelectSQL & " FROM " & _
"SCOPE" & TheScope & _
"where " & _
" ""urn:schemas:httpmail:datereceived"" " & DateRng1 & _
"and ""urn:schemas:httpmail:datereceived"" " & DateRng2 & _
"</D:sql></D:searchrequest>"

Nov 10 '05 #1
0 906

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rade Josovic | last post by:
Hi, First implementation of WebDAV protocol is here: WebDAV .NET 1.0 from Independentsoft. Go to http://www.independentsoft.de The WebDAV .NET is WebDAV protocol API for Microsoft .NET...
0
by: Rade Josovic | last post by:
Hi, First implementation of WebDAV protocol is here: WebDAV .NET 1.0 from Independentsoft. Go to http://www.independentsoft.de The WebDAV .NET is WebDAV protocol API for Microsoft .NET...
0
by: Binh Phung | last post by:
I am trying to do a between clause but it is not working, where am i going wrong? TheScope = "('deep traversal of ""http://myserver/exchange/folder/inbox/""')" SelectSQL = "...
0
by: arjen1984 | last post by:
I am now working on C# with WebDAV on Exchange now to get appointments. When I work local on the domain where the server is, i can get the appointments no problem. When I work outside of it, i get an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.