OPENROWSET shuting down SQL Server service, but only running on the server
Go check your provider (Microsoft.ACE.OLEDB.12.0) settings in SSMS.

Server Objects -&gt; Linked Servers -&gt; Providers -&gt;
Microsoft.ACE.OLEDB.12.0 -&gt; Properties

If &quot;Allow inprocess&quot; is ticked off, the provider code is running inside the SQL Server process. This can cause the entire process to shut down. More info in this article