web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

RMS 2.X SQL Server blocked access - Ad Hoc Distributed Queries

(0) ShareShare
ReportReport
Posted on by 5

RMS 2.X MS SQL EXpress 2012 (SP4) simple setup Main DB and separate Cash Register

During an network connectivity issue my Cash register went in offline mode. When the connectivity to the main DB server came back on. I got the following error on the cash register.

SQL Server blocked access to STATEMENT 'OpenRowSet/OpenDatasource' of component 'Ad Hoc Distributed Queries' because this component is turned off as part of the security configuration for this server. A system Administrator can enable the use of "Ad Hoc Distributed Queries' buy using sp_configure....

How do I fixed this issue? Do I enable Ad Hoc Distributed Queries on both database Servers (the main DB server and the Cash Registers offline) or only the cash registers?  Any security implications I should be aware of when doing this?

Thanks

Danny

I have the same question (0)
  • Dan902 Profile Picture
    5 on at
    RE: RMS 2.X SQL Server blocked access - Ad Hoc Distributed Queries

    So I did the the following:

    execute sp_configure 'ad hoc distributed queries', 1

    reconfigure with override

    On both my cash register computer and DB server, the transaction get uploaded to the DB server properly when I regain connectivity (back in ON-LINE mode) and when I go a z-report to close the batch, it appears as if the "off-line database is getting synchronize.

    But a new item that had been added while online does not appear to be in the off-line system when i use Store Operation in offline mode. When in do a DBCheck on the offline database I get error 91:  Object variable or With block variable not set?

    Any help would be appreciated.

    Thanks

    Danny 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,869 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,484

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,242

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans