use [srgprs]
go
-- Permitir queries ADDHOC

sp_configure 'show advanced options', 1
go
reconfigure
go
sp_configure 'Ad Hoc Distributed Queries', 1
go
reconfigure