Link to home
Start Free TrialLog in
Avatar of Mauro Cazabonnet
Mauro CazabonnetFlag for United States of America

asked on

How to force output to ascii

I'm running this command
Invoke-Sqlcmd -QueryTimeout 0 -Query "EXEC [Storeprocedure]" -ServerInstance $primaryserver -Database $SQLDBName -Verbose 4>> $logentryfile

Open in new window


I'm redirecting the output with 4>>

I'm calling the powershell script from within an SSIS task using .NET ProcessStartInfo

I need to force the output to ascii format, right now it's defaulting to unicode

Any help most appreciated
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mauro Cazabonnet

ASKER

Cool thx!!!!!!!