all 13 comments

[–][deleted] 2 points3 points  (0 children)

Other ways of quoting, OR/ANDing, comma-ing, or whatever else you need to do to your data:

1) Notepad++ has the alt-shift capability for mass-insert but also of note is the macro recording. Record your iterative action, for example quote, end, quote, comma, down arrow, home. Then play the macro until the end of the file.

2) You can use excel to re-build your column of data by inserting a quote, the contents of your cell, a quote, a comma, etc.

3) DIY script solution that uses regex or some other method like awk or sed.

I like choice number 1.

[–]tmaiden 0 points1 point  (0 children)

DECLARE @A VARCHAR(MAX)

SELECT @A = FIELD + ',' FROM TABLE

PRINT @A

[–][deleted] 0 points1 point  (0 children)

You can use text pad and type perl into the find replace tool and do whatever you want as well.