Share via


add text to beginning or end of each line using SSMS

1.Add text to the beginning of each line

Ctrl+H

type "^" in the "Find"

type text you want to add in "Replace with"

Choose the "Regular expressions" checkbox

replace_add_ the beginning of each line1 replace_add_ the beginning of each line2

 

2.Add text to the end of each line

Ctrl+H

type "$" in the "Find"

type text you want to add in "Replace with"

Choose the "Regular expressions" checkbox

replace_add_ the end of each line1 replace_add_ the end of each line2