집 >데이터 베이스 >MySQL 튜토리얼 >SQL Server에서 임시 분산 쿼리를 활성화하는 방법은 무엇입니까?
SQL Server에서 임시 분산 쿼리 활성화
SQL Server 2000에서 원활하게 작동했던 OpenRowset 쿼리는 SQL Server 2008에서 다음과 같은 오류가 자주 발생합니다. :
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.
이 오류를 해결하려면 임시 분산 쿼리를 활성화하고 sp_configure를 사용하여 다음 단계를 수행하세요.
-- Show advanced server configuration options EXEC sp_configure 'show advanced options', 1 RECONFIGURE -- Enable Ad Hoc Distributed Queries EXEC sp_configure 'ad hoc distributed queries', 1 RECONFIGURE
이 명령을 실행한 후 SQL Server 2008 인스턴스에 대해 임시 분산 쿼리를 활성화하여 OpenRowset 쿼리를 허용해야 합니다. 성공적으로 운영되길 바랍니다.
위 내용은 SQL Server에서 임시 분산 쿼리를 활성화하는 방법은 무엇입니까?의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!