Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Help scheduling task for remote query to MSSQL 05

Author  Topic 

mokru
Starting Member

4 Posts

Posted - 2011-12-21 : 16:04:30
Been at my current job 4 months. I wrote a simple PowerShell script that connects to our MSSQL 2005 DB and executes a query, formats the results, and emails the query results to interested business users. All is great, it runs and performs as expected, but now I need to schedule it to run 2 times a day which I have, but I need to restrict the account under which it runs to the minimum privilege possible to still run. What I need now is to know what account privileges do I need to let the account have to (1) execute the scheduled task and (2) execute a simple Select query on the remote DB server? Our current setup is Windows domain authentication. I'd like to lock it down to a reasonable service account level.

Any hints, or --even better-- answers are greatly appreciated!

Thanks,
Jay
   

- Advertisement -