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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:32:22+00:00 2026-05-31T15:32:22+00:00

I am using Sql Server Management studio and I’m running a query with a

  • 0

I am using Sql Server Management studio and I’m running a query with a select statement.

At the beginning and end of the query I have a select getdate()

If I run the query with ‘Results To Grid’ instead of ‘Results To Text’ I get VERY different times between these to times (I’ve run several times to eliminate disruption from caching).

These times are obviously generated on the SQL server itself (because they’re part of the query) as opposed to Management Studio, given that why would the result output impact on the time it takes the query to execute?

  • 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-31T15:32:24+00:00Added an answer on May 31, 2026 at 3:32 pm

    If it is a multi-part query, e.g.:

    --Get the start time
    SELECT getdate();
    
    SELECT * FROM foo;
    
    --Get the end time
    SELECT getdate();
    

    My assumption would be that the difference is that SSMS is rendering the results of each part before issuing the next part of the query (or more likely, before advancing to that result set and therefore causing SQL Server to evaluate the last statement). Rendering to a grid probably takes dramatically more time than writing out plain text, so the time may be different.

    That’s really the only explanation if the client rendering mode is truly affecting the time between the first and the last GetDate().

    If you want true server-side, single statement timing, you may want to look into using SQL Server Profiler to time the execution of the query itself.

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

Sidebar

Related Questions

Background: I'm using SQL Server Management Studio 2008 and I have a query window
I'm using SQL Server 2008 Management studio viewing a 2005 server and have just
I am using SQL Server Management Studio 2008 and writing the following query INSERT
I am using SQL Server Management Studio to run a script on SQL Server
I have been using SQL Server Management Studio for years. Yesterday, when I started
Using SQL Server Management Studio, I have backed up a database from one server
When using SQL Server Management Studio from SQL Server 2005, I can connect to
I am currently using SQL Server Management Studio (Ver 9.00.3042.00) and click the New
So, I'm using SQL Server Management Studio Express,it has been working not bad so
Using MS SQL Server Management Studio 2005 - To Restore a Database: Restore Database

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.