Forum Discussion
CBH2021
Jul 05, 2021Copper Contributor
PowerShell Query for SQL
Hi All, I'm running a query in PowerShell. the query has two commas One wraps the query and the other (inside) wraps the DB_Name when Running get an error "0" argument(s): "Invalid column name '...
psophos
Jul 09, 2021Brass Contributor
Without some idea of the command that you are trying to execute we're just going to be randomly guessing.
When you say commas, do you mean quotes?
If so, put the double quotes " around the outside and use single quotes ' on the inside: 'DB_Name'.
When you say commas, do you mean quotes?
If so, put the double quotes " around the outside and use single quotes ' on the inside: 'DB_Name'.