Этот код работал в SQL Server Management Studio 2008 но не работает SQL Server Management Studio 2014
Ошибка:
SELECT * FROM OPENROWSET ('MSDASQL', 'Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ=C:\test\;', 'SELECT * from Unit__c.csv ');
Ошибка:
Msg 15281, Level 16, State 1, Line 3 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', search for 'Ad Hoc Distributed Queries' in SQL Server Books Online.