I use AD Hoc Distribution Queries to transfer data from MS SQLServer 2008 to MS Access. The process starts using a single SQL statement:
INSERT INTO OpenDataSource('Microsoft.Jet.OLEDB.4.0', 'Data Source=C:\temp\target.mdb;User ID=Admin;Password=;')...testtable select * from dbo.testtable
To do this, I set the Ad Hoc Distribution Query parameter to 1 through
sp_configure 'Ad Hoc Distributed Queries', 1
Everything is working fine while the statement is being executed with the permission of the sysadmin database.
When I try to execute the statement as a regular db user, the statement does not work with a permission denied message.
How can I give all users the ability to perform special mailings?
Thanks in advance
Mark
source share