Results 1 to 9 of 9
  1. #1
    AkramKar is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2025
    Posts
    5

    Persian problem in linked access app to sql server

    Hello,
    I have an already made ms access app which work fine with a linked ms access database on a workgroup network.
    But there is a concern after deleting the shared database by users. So I decided to convert database to sql server and link my access app to sql server. I successfully did the link, but in forms that performs querys with Persian language parameters (unicode) returns nothing.
    How can I solve this?
    I already corrected collation of sql server db.

  2. #2
    madpiet is online now Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    559
    Quote Originally Posted by AkramKar View Post
    Hello,
    I have an already made ms access app which work fine with a linked ms access database on a workgroup network.
    But there is a concern after deleting the shared database by users. So I decided to convert database to sql server and link my access app to sql server. I successfully did the link, but in forms that performs querys with Persian language parameters (unicode) returns nothing.
    How can I solve this?
    I already corrected collation of sql server db.
    What field type are you using or text? VARCHAR or NVARCHAR? You should be using NVARCHAR.

  3. #3
    AkramKar is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2025
    Posts
    5
    Quote Originally Posted by madpiet View Post
    What field type are you using or text? VARCHAR or NVARCHAR? You should be using NVARCHAR.
    I am using nvarchar.

  4. #4
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,235
    Did you refresh the links after changing the collation in the SQL Server? Are you using the latest SQL Server ODBC driver? Can you try running a pass-through query and see if it returns the desired records?

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  5. #5
    AkramKar is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2025
    Posts
    5
    Quote Originally Posted by Gicu View Post
    Did you refresh the links after changing the collation in the SQL Server? Are you using the latest SQL Server ODBC driver? Can you try running a pass-through query and see if it returns the desired records?

    Cheers,
    Hi,
    I did refresh the link. My odbc driver is ODBC driver 17 for SQL server as I see in ODBC Data Source Administrator in win 10. I'm using sql server 2008 an access 2016. It didn't work with pass-through query either. When I use query with parameters in English everything is fine.

  6. #6
    AkramKar is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2025
    Posts
    5
    I tested pass-through query with english parameters, it didn't work too. but normal query is ok with english criteria values.

  7. #7
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,175
    try to run the query with the Persian criteria from the management studio. You can add the COLLATE instruction to the query

    example
    Code:
    SELECT field1 FROM MyTableWHERE Field2 COLLATE Latin1_General_CI_AS LIKE'C%'ASC; GO
    of course change the collation to the correct one

  8. #8
    madpiet is online now Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    559
    Not sure which is Persian (Iraq?)
    But have a look here: Collation and Unicode Support - SQL Server | Microsoft Learn

  9. #9
    AkramKar is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2025
    Posts
    5
    Hello and thanks for the replies. I had put the sql server connection apart, since I couldn't find right solution. I will try your suggestions at the time. Specially the one NoellagG said. Thanks.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Read a sql server database outside of SQL Server
    By RayMilhon in forum SQL Server
    Replies: 6
    Last Post: 01-28-2020, 03:56 PM
  2. Upgrade from SQL Server 2008 to SQL Server 2014
    By RayMilhon in forum SQL Server
    Replies: 4
    Last Post: 07-12-2017, 04:54 PM
  3. Replies: 3
    Last Post: 07-14-2016, 12:42 AM
  4. Replies: 3
    Last Post: 12-17-2015, 07:01 AM
  5. Replies: 0
    Last Post: 12-20-2012, 01:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums