CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2000
    Posts
    77

    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.


  2. #2
    Join Date
    Feb 2012
    Posts
    1

    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.

  3. #3
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    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?

  4. #4
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    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.

  5. #5
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    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
  •  





Click Here to Expand Forum to Full Width

Featured