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

  • SEARCH
  • Home
  • 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 7189811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:22:54+00:00 2026-05-28T19:22:54+00:00

When running a query on SQL Server and using Results to file function, SQL

  • 0

When running a query on SQL Server and using Results to file function, SQL Server automatically adds a success message at the end of the file that looks like this:

(2620182 row(s) affected)

With a small file, you could pop it open a text editor and remove it manually, but when your file is millions of records, it takes a bit more work. I could use grep or sed to remove it, but that’s a manual process.

Is there a way I can surpress that message from showing up in my saved result set?

  • 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-28T19:22:55+00:00Added an answer on May 28, 2026 at 7:22 pm

    Add

    SET NOCOUNT ON;

    before executing your query.

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

Sidebar

Related Questions

I've noticed that when viewing query results in a grid in SQL Server Management
using SQL server 2005+ for over a year now, I've been running a query
I am using Sql Server Management studio and I'm running a query with a
I'm running SQL query for MySQL server with ... where name in (term1,term2,term3) I
I'm running an SQL query against a mainframe DB2 database using the OdbcDataReader class
I recently discovered that a sql query that was running fine earlier is now
I am running a sql in PHP query that is dieing with the mysql_error()
I'm running a code which calls an SQL query using ODBCDataReader. The result of
i am using php and running sql queries on a mysql server. in order
I'm running into an odd bug using datetime fields in SQL Server 2005. The

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.