tags:

views:

208

answers:

1

What’s the quickest way to export SQL Server data to CSV with ALL column fields enclosed in double quotes, including numeric fields?

In the Results window of Management Studio, I can right click and choose “Save Results to CSV” but it doesn’t enclose fields in double quotes.

I have looked into similar questions but the solutions proposed does not do what I want.

+1  A: 

Use bcp utility.

Example here.

Lukasz Lysik