Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Syntax on SQL Anywhere Pass-Through Query 1

Status
Not open for further replies.

Sumnor

Programmer
May 29, 2003
16
US
I have created an Access SQL Anywhere pass-through query that correctly brings back thousands of records. I would like to limit the number of records returned to only those created since 01/01/2003. For some reason I am getting an ODBC Driver Syntax Error regardless of the syntax I use. What is the date where syntax I should use to find all records greater than or equal to 01/01/2003?

Thanks, in advance!
 
What is the data type of the date field in your database?

-L
 
Sumnor,

What is the destination of the Pass Through(Sybase, SQL Server ?) perhaps you should try Date >= "20030101"

Mordja
 
Thanks, Mordja. I was able to apply the date format as you suggested and VOILA the pass-through query worked! Such a simple fix... I wish I had come up with it myself. It certainly pays to ask for help!
[2thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top