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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:39:38+00:00 2026-05-20T02:39:38+00:00

What can cause SQL server 2005 to return the results of a SELECT in

  • 0

What can cause SQL server 2005 to return the results of a SELECT in a different order.

Note:
I don’t know if that matters but the query has an Order by clause on a non-unique column (Date column to be specific) and the table is a temp table.

Edit:
I know that the order is not guaranteed if I wont specify it, but it usually consistent until something happens.

I want to know what is this “something” that can happen.

Thanks.

  • 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-20T02:39:39+00:00Added an answer on May 20, 2026 at 2:39 am

    If ordered by a non-unique column, then after the guranteed ordering of that column, the order of the rows within a given group is not guranteed – as awm said, it’s down to the database. An insert can change the order, joins can change the order, an update can potentially change the order.

    If you want guranteed order, then specify a set of columns in your order by that will gurantee order.

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

Sidebar

Related Questions

In SQL Server (in my case, 2005) how can I add the identity property
Working in SQL Server 2005, I have a stored procedure that inserts a record
There are certain conditions that can cause stack overflows on an x86 Linux system:
We all know the trouble overflows can cause, and this is why strn* exist
I recall reading somewhere that using references to smart pointers can cause memory corruption.
the other day a colleague of mine stated that using static classes can cause
Is this warning anything to worry about? I've read that it can cause erratic
I noticed today that auto-boxing can sometimes cause ambiguity in method overload resolution. The
Using SQL Server 2005. I am building an inventory/purchasing program and I’m at the
Is there a valid way in SQL Server 2005 to read a row of

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.