Executed as user: PROD\_tuition. 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’ by using sp_configure. For more information about enabling ‘Ad Hoc Distributed Queries’, see “Surface Area Configuration” in SQL Server Books Online. [SQLSTATE 42000] (Error 15281). The step failed.

Following code is causing failure SET @Str = ‘INSERT INTO OPENROWSET(”SQLOLEDB”, ”Server=Tuitionaffordable;Trusted_Connection=yes;”, ”select sourceserver, tuitionsto, tuitionssubject, tuitionsbody from tools..tuitions”) values(”’+ @tuitions_sourceserver + ”’, ”’ +

1 2 3 4 5 17