SQL 2016 Linked Server Problems

rr-4098 1,276 Reputation points
2024-05-15T20:35:42.68+00:00

I am trying to setup a linked server connection to another DB running a non-MSSQL DB. On the local server the account I am using has Sysadmin right on the remote server the local DB account has what they call Admin rights as well. We have tried using impersonation and various other options on this screen all cause the console to hang on executing when you click ok. Please note we did test the ODBC connection outside of SSMS and it worked,

Any ideas?????

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

Accepted answer
  1. Erland Sommarskog 102.4K Reputation points
    2024-05-16T21:29:17.98+00:00

    So if your description is accurate, it sound like a blocking issue. When you create a linked server, you are only updating the local system catalog. You are not connecting to the remote server. That will not happen until you use the linked server in a query or try the Test Conncection button.

    Why it would be blocked? Well, maybe someone did

    BEGIN TRANSACTION
    EXEC sp_addlinkedserver YOURSERVERNAME
    

    And left that transaction open.

    You could use sp_who2 while SSMS is open to check for blocking.

    0 comments No comments

0 additional answers

Sort by: Most helpful