Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Date and String Where clauses using SQL Server 2005 |
Author |
Message |
|
Posted : 2008-02-09 07:26:18 |
What syntax to I use for date or string entry in Where clauses when doing queries through the SQL Server linkes server interface? The following query doesn't work:
SELECT * FROM OPENQUERY(QODBC,' SELECT * FROM TimeTracking Where TxnDate>=#11/18/2007# And TxnDate<=#11/25/2007# ');
The error message is: OLE DB provider "MSDASQL" for linked server "QODBC" returned message "[QODBC] Unexpected extra token: #".
Similarly, I can't use string constants in the Where clause either because the whole thing is contained in single quotes. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-02-10 22:18:11 |
|
|
|
|