|
-
April 15th, 2002, 07:09 AM
#1
Is 'ODBC Text Driver' case sensitive?
Is 'ODBC Text Driver' case sensitive?
"SELECT Path From Path_Table.txt WHERE Path LIKE '" & SampFolder & "%'"
The above query returns no records if the case of 'Path' feild doesnot match with SampFolder variable.
I use a File DSN to read data from a text data file.
If Path="c:\Program Files\Common" and SampFolder="C:\Program Files" the above query returns EOF.
Any idea? how can i work around it?
Thanks,
Kiran.
-
February 21st, 2012, 05:13 AM
#2
Re: Is 'ODBC Text Driver' case sensitive?
SELECT Path FROM Path_Table.txt WHERE LCASE(Path) LIKE '" & SampFolder & "%'"
SampFolder variable should be in lower case.
-
February 21st, 2012, 06:52 AM
#3
Re: Is 'ODBC Text Driver' case sensitive?
Well, how deep did you dig?
This thread is 10 years old!
Please do not revive old threads!
Do you think, after ten years the original poster will be happy that he finally got an answer?
-
February 21st, 2012, 05:28 PM
#4
Re: Is 'ODBC Text Driver' case sensitive?
It is amazing that so many people take the time to register here and make one post in answer to a question that is years old.
I doubt that case sensitivty was the problem anyway as I do not recall ever having a case sensitivity issue with any form of SQL. The wildcard maybe.
Always use [code][/code] tags when posting code.
-
February 22nd, 2012, 07:40 AM
#5
Re: Is 'ODBC Text Driver' case sensitive?
Right. I'm sure the wildcard character used within Access is "*", whereas when using SQL through ADO it is "%"
Also using the LIKE operator makes the comapre ignore the case.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|