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 7551807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:35:35+00:00 2026-05-30T10:35:35+00:00

I have been doing SQL for a while and I’ve always been satisfied to

  • 0

I have been doing SQL for a while and I’ve always been satisfied to use the Results to Grid found in SSMS.

Now I have a series of queries that I am running and I would like to have some very simple formatting of the results. Currently neither the Results to Grid nor the Results to Text do quite what I would like to do.

A few things I would like to do so it is easier for me to read is

  1. Remove the text that says ‘# row(s) affected’ (found in the Results to Text)
  2. Make the columns not so wide in the column aligned Output Format (part of the problem is that the Maximum Number of Characters does not appear to go below 30 – is this my data that forces this?)

If I cannot format the output (even to a text file) what other options do I have ?

I spent some time looking at SQL Server -> PHP -> HTML as well as SQL Server -> Reporting Services -> MS Report Builder but quite frankly it seems like overkill to put a few spacers and pretty up the headings a bit.

I feel like I am missing something here … I would rather not go through the hassle of all that installation of PHP and what not just to be able to look at my data a little bit prettier.

  • 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-30T10:35:37+00:00Added an answer on May 30, 2026 at 10:35 am

    Remove the text that says ‘# row(s) affected’ (found in the Results to Text)

    Put this SET NOCOUNT ON at the top of your sql

    Make the columns not so wide in the column aligned Output Format (part
    of the problem is that the Maximum Number of Characters does not
    appear to go below 30 – is this my data that forces this?)

    Yes its the size of the field that does this. You can cast it cast(field as varchar(20)to make it smaller if you know you won’t lose data.

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

Sidebar

Related Questions

I have been doing active development in C# for several years now. I primarily
I use Netbeans for development and have been doing my Mercurial operations on the
I've been programming for a while and have used LINQ-To-SQL and LINQ-To-Entities before (although
I have been trying to figure this out for a little while now and
I have been racking my brains over this for a while now. Here is
We have been doing some research into physically isolating the secure and non-secure sections
I have been doing a little reading on Flow Based Programming over the last
I have been doing some research on test driven development and find it pretty
I have been doing TDD and was using it more as unit testing than
I have been doing PHP stuff for almost one year and I have never

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.