Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

powershell script through agent job only performing half the steps it should.

$
0
0
Ok. I'm out of ideas.I have a script that grabs a list of sqlserver instances, then connects to each (foreach), executes a query and loads the results into a table.Every time I execute the script through a sql agent job(via cmdexec) , it only queries against 2 of the 4 servers it should.Its run successfully from powershell, powershell ise, starting powershell through sql server, it even runs successfully if I run it through a standard command prompt.Any ideas?

Viewing all articles
Browse latest Browse all 467

Trending Articles