I have a csv file that contains resume in plain text. I need to convert the text field from a text to html code.
For example:
Plain text:
Head
Line2
Line3
Line4
Converted:
<p>Head</p>
<p>Line2<br />
Line3<br />
Line4</p>
Can a SQL Server function can do this? I already saw a online tool http://www.textfixer.com/html/convert-text-html.php that can do similar function, but I need to convert at least 1300 rows of resume that inside a csv file.
Thanks in advance!
I will assume you can put the csv into a temp table or even just write this against the csv using open rowset or something but here is an idea of how to get the encoding you want. If more than one resume exists replace
PARTITON BY 1
withPARTITION BY UniqueResumeId