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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
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
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

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!

  Previous Topic Topic Next 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