Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Help Sort By Limitation??

Author  Topic 

jotmenow
Starting Member

12 Posts

Posted - 2008-06-26 : 15:25:23
Hi all,

iam trying to sort around 500k+ records using sort by "date" field.

Data looks gud for the first 30-40k records i could check in Excel,but i dont think all the data is getting sorted correctly.

Does Sql Server has any limitation on sort by .
Please help hw i could do this.??

Thanks a lot in advance.
Ajay

.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-06-26 : 15:27:12
Did you provide an ORDER BY in your query?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-06-26 : 15:32:13
Is datatype of the date column DATETIME?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

jotmenow
Starting Member

12 Posts

Posted - 2008-06-26 : 15:32:35
yeap.
My q luks some thing like this.

Select * from tb1 order by createddate;

First 10k -20 k records luks good,but definitely nt all 500k+ records.

Ajay

.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-27 : 13:07:47
quote:
Originally posted by jotmenow

yeap.
My q luks some thing like this.

Select * from tb1 order by createddate;

First 10k -20 k records luks good,but definitely nt all 500k+ records.

Ajay

.


then definitely there's some problem with column. Are you sure the datatype of column createddate is datetime? Also how are exporting this from excel to sql table?
Go to Top of Page
   

- Advertisement -