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?
↧