SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Help scheduling task for remote query to MSSQL 05
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mokru
Starting Member

USA
4 Posts

Posted - 12/21/2011 :  16:04:30  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000