Powershell SQL query--connection string
- by sean
I am trying to query several different SQL servers and run a command on each of them. I am unable to get the connection string right. Code, below.
I receive the following error:Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
I thought if I passed it the credentials it wouldn't care about the…