2

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.

2 Answers 2

3

Use bcp utility.

Example here.

Sign up to request clarification or add additional context in comments.

Comments

0

Use QUOTENAME if y ou want double quotes around fields

Link to quotename

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.