Windows Server TechCenter > Windows Server Forums > Windows PowerShell > Change the width of here-string?
Ask a questionAsk a question
 

AnswerChange the width of here-string?

  • Friday, October 30, 2009 4:33 PMMike Eisenstein Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm trying to run a SQL Query from PS using a here-string and it's not working.
    When I echo my query here-string to a text file just prior to trying to run it, I see that the here string is wrapping at 80 columns's width.  This, of course, screws up variable names, statements, etc.

    Is there a way to instruct a here-string to not wrap, or to wrap at a far larger number of columns?

Answers

All Replies