Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4059020
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:09:14+00:00 2026-05-20T15:09:14+00:00

When using the SQL Server (2005, 2008) Save Results As… option, I do get

  • 0

When using the SQL Server (2005, 2008) “Save Results As…” option, I do get a CSV, but SQL Server isn’t doing what I would consider proper CSV creation.

Specifically, if my data contains commas, those fields aren’t being wrapped in double quotes. The specific data set that I’m looking at right now doesn’t contain fields with double quotes, but if it did, I’m not sure SQL Server would do those correctly, either.

Every week I have to run a query on a database on a remote server, that generates about 36k rows, and I have to get it back to someone in my office in CSV format. Up to now, I’ve been copying the data, then pasting it into Excel (via Remote Desktop). But pasting 36k rows from a remote clipboard is taking quite a while. Excel gives all sorts of “Waiting for OLE operation to complete” messageboxes as this happens.

I would prefer to just run the query, save the results as a CSV on the remote server itself, then copy down the file.

Long term I will write a process to do this automatically for me, but I’ve had this problem with SQL Server for many years now, but the pain level hasn’t been high enough for me to find a solution until now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:09:15+00:00Added an answer on May 20, 2026 at 3:09 pm

    Select menu item Tools > Options and the Options dialog appears. On the Options dialog navigate to Query Results > SQL Server > ‘Results to Text’. Select for ‘Output format’ item ‘Custom delimiter’. Specify your delimiter in the ‘Custom delimiter’ field. Click OK to save.

    Open a query window and select menu item Query > ‘Results To’ and either ‘Results to File’ or ‘Results to Text’. Run your query which will be output with your specified delimiter.

    For your automated process though take a look at the SQL Server BCP command line utility for outputting your data from SQL Server. Through the command line switches you have complete control over the delimiter and text qualifier. Using BCP is quite easy and I suggest using it even if other elements of your long term process aren’t in place

    I have an automated process that calls BCP which uses a Stored Procedure to collect data which is zipped and FTPed to a client on a nightly basis. My process is run in a batch file kicked off by a Scheduled Task on the SQL Server machine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using SQL Server 2008 Management studio viewing a 2005 server and have just
I am looking to manage a SQL Server 2008 DB using Management Studio 2005.
I'm using SQL Server 2005, and I would like to know how to access
We are using SQL Server 2005, but this question can be for any RDBMS
Using SQL Server 2005 and 2008. I've got a potentially very large table (potentially
Using SQL Server 2005 and Management Studio how do I insert a picture into
When using SQL Server Management Studio from SQL Server 2005, I can connect to
I am using SQL Server 2005. I have a table with a text column
We're using SQL Server 2005 in a project. The users of the system have
I am using sql server 2005. I just want to know is there something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.