SQL Server blocked access (OpenRowset/OpenDatasource)

Sửa lỗi “SQL Server blocked access to STATEMENT ‘OpenRowset/OpenDatasource’ of component ‘Ad Hoc Distributed Queries'”

CHẠY CÂU LỆNH QUERY SAU:

EXEC sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
GO
EXEC sp_configure 'ad hoc distributed queries', 1
RECONFIGURE WITH OVERRIDE
GO

Thường áp dụng cho việc chạy các câu lệnh có sử dụng OPENDATASOURCE / OPENROWSET để truy vấn.

Last updated