Closed Sarafian closed 3 years ago
I also found this problem. Failure to get local instance name when SQL server is not installed on my machine. I modified to not get the local instance name when ConnectionString is specified.
I am also receiving this same error.
How to reproduce issue When I using the
-ConnectionString
parameter with e.g.Invoke-SqlServerQuery
I get an error
Workaround Feed the respected values from the connectionstring as separate parameters
New-SqlQuery
instead of raw sql