Foo
Bar
AnotherCol
And many times my column list is VERY long. I now need to add a common after each column so I can use this in my INSERT statement. SSMS Regular Expressions make this easier. Here's the process:
Your output will be this:
ObjId,
Foo,
Bar
AnotherCol,
Here's how you remove the line breaks entirely:
The output is:
ObjId,Foo,Bar,AnotherCol,
Dave Wentzel CONTENT
sql server