Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Need script read database field (VARCHAR(MAX) line by line

$
0
0

Hi,

 I looking for a function to read the content of a database field line by line. The content of the column contains line feeds! I try to read the content of the database using get-content followed by the variable contains the varchar(max). 

ForEach ($Line In $VarcharContent)
{

}

Only one loop will happen containing the complete text. I need the read the text line by line.

Hope to read any suggestion to sole the issue.


Viewing all articles
Browse latest Browse all 21975

Trending Articles