SQL server linked server using ODBC - windows vs SQL login

Mordechai Danielov 11 Reputation points
2022-11-01T07:19:02.173+00:00

We have an ODBC connection to Netsuite. It uses a CA certificate. I can create a linked server using the MSDASQL provider and it works fine, but only for SQL server logins. For windows logins, behavior is not consistent. Some accounts can use the remote server and some get an error : OLE DB provider "MSDASQL" for linked server "NETSUITE" returned message "[NetSuite][ODBC 64bit driver][64bit Client]Problem obtaining trusted CA certificates from Truststore".

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,014 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Mordechai Danielov 11 Reputation points
    2022-11-02T13:05:40.26+00:00

    in the end, it turned out to be the truststore setting in the odbc.ini. When the odbc connector is created this setting is set to "system". Changing it to the actual certificate path did the trick.

    2 people found this answer helpful.

  2. YufeiShao-msft 7,121 Reputation points
    2022-11-02T07:33:31.967+00:00

    Hi @Mordechai Danielov ,

    For Windows logins, the login must be a valid login on the linked server, make sure that the Windows identify has been granted access to the SQL server database and for not work login, check the user credentials you should use to connect to the database

    And check the local server login to remote server login mappings
    256296-image.png

    -------------

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  3. Erland Sommarskog 112.7K Reputation points MVP
    2022-11-01T22:54:08.447+00:00

    I don't know anything about Netsuite, but generally I would not expect self-mapping with Windows authentication to work with any other data source than SQL Server. Actually, even getting self-mapping to work with SQL login is a small feat.

    You often have to resort to set up a proxy login, so that connection to the remote data source is done through that proxy. That proxy can be common for all users (not very secure) or be set up per user (maintenance nightmare).


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.