frankEQS
asked on
Invoke-sqlcmd problem - special characters replaced with "?"
I have a problem when invoking sql scripts with the use of invoke-sqlcmd.
Every spesial character i use (like Æ, Ø and Å) are being replaced with a ?.
This does not happen when i manualy load these scripts in management studio.
SQL server 2008
Powershell 2.0
My code to run the scripts
Here is a dude with the exact same problem!
http://www.sqlservercentral.com/Forums/Topic1159860-1351-1.aspx
Please help!!
Every spesial character i use (like Æ, Ø and Å) are being replaced with a ?.
This does not happen when i manualy load these scripts in management studio.
SQL server 2008
Powershell 2.0
My code to run the scripts
invoke-sqlcmd -InputFile $create_clean -ServerInstance $sql_server -database $dbname -ErrorAction "silentlycontinue"
Here is a dude with the exact same problem!
http://www.sqlservercentral.com/Forums/Topic1159860-1351-1.aspx
Please help!!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have not looked into YZlat solution.