DATA ACCESS not configured for repl_distributor.

chrisrdba 471 Reputation points
2021-07-30T15:23:45.453+00:00

After replication running for a year, the nightly expired subscription cleanup job suddenly failed. Tracking everything down, the repl_distributor linked server fails connection attempts with the following:

Server 'repl_distributor' is not configured for DATA ACCESS. (.Net SqlClient Data Provider)

However, I script out the linked server and it shows this:

EXEC master.dbo.sp_serveroption @Testta =N'repl_distributor', @optname=N'data access', @optvalue=N'true'
GO

Ironically replication is still working just fine, as verified through tracer tokens, etc.

Note that I did reboot this server last night before the issues started, so I'm sure it's related.

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.
14,494 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CathyJi-MSFT 22,376 Reputation points Microsoft External Staff
    2021-08-02T09:40:16.543+00:00

    Hi @chrisrdba ,

    SQL server replication works well now? Expired subscription clean up job still failed now?

    Please using below T-SQL to check the Data Access Setting.

    SELECT   
      name,  
      is_data_access_enabled   
    FROM sys.servers;  
    

    If the value for repl_distributor is 0, please run below T-SQL;

    EXEC sp_serveroption  
      @server = 'repl_distributor',  
      @optname = 'DATA ACCESS',  
      @optvalue = 'TRUE';  
    

    Then check the Data Access Setting again.


    If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.


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.