September 8, 2009 at 6:06 am
I am having 3 databases in SQL server 2000.
(2 databases are in one server ither one in different server)
In that i ran one query in all databases.
i am getting same order of data for evey run in 2 databases.
But in one environment i will get differnt order of data whan each run.
Can you please anybody help me?
September 8, 2009 at 6:11 am
To ensure the results are always sorted in the same way you have to add an ORDER BY clause.
If you don't provide an explicit order, results are not sorted in a predictable way.
-- Gianluca Sartori
September 8, 2009 at 1:44 pm
You also need to take into account collation. Are they all the same?
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
September 8, 2009 at 11:44 pm
I didn't explicitly added * Order by * in the query.
But how can i get ordered data of every run in 2 databases?
Can you please explain collation ?
I need some more descriptive.
Thanks.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply