SQL query according to culture culture

已答复 SQL query according to culture culture

  • Thursday, February 23, 2012 9:18 AM
     
     

    Hi,

    When I query the sql database, it doesn't query according to the culture differences. For an instance, if i run the following query select * from MyDB where id='Abc', I also get the record with the id Åbc. But I don't want it. I want ony the exact match. How can I sort this issue?

    Thanks in advance.

All Replies

  • Thursday, February 23, 2012 12:01 PM
     
     Answered

    Hi,

    you can use collate in your query to enforce SQL to query based on the given collation or set it in your server.

    List of Collation string<//a>

    http://msdn.microsoft.com/en-us/library/ms179254.aspx

    I hope this is helpful.

    Elmozamil Elamir

    MyBlog


    Please Mark it as Answered if it answered your question
    OR mark it as Helpful if it help you to solve your problem
    Elmozamil Elamir Hamid
    http://elmozamil.blogspot.com

    • Marked As Answer by jeyan Friday, February 24, 2012 10:56 AM
    •