Click here to Skip to main content
15,894,540 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using SQL Server 2005 Express edition for my Application. I gets the correct result for the queries with smaller number of rows. But the number of rows become 12000 or greater, result is not in the desired order.

(My machine's configuration is Intel core 2 duo processor, 2 GB RAM, Windows Xp Professional service pack 2.)


Is this the problem of SQL Server 2005 Express edition,or my query?

Please help me... Thanks in advance...
Posted
Updated 5-Jan-12 20:11pm
v2
Comments
devbtl 6-Jan-12 2:20am    
put some piece of code here.

Most likely it is your query and you need to build indexes for your tables.
 
Share this answer
 
Dear Arun,

I think it requires indexing.

use this link to create indexes

Defining Indexes with SQL Server 2005[^]

creation of primary key and foreign key relationship in database , will make faster access.

Thanks,
 
Share this answer
 
v2
"But the number of rows become 12000 or greater, result is not in the desired order."

If this is the crux of the problem then I am guessing the query contains a clause you expect to order the result but which isn't, or rather which _sometimes_ orders the result, i.e. a 'group by' or a 'select distinct'

Again without actually seeing the code I'm just taking an educated guess but if you are expecting the result to appear in a particular order then the only way to ensure this is to use an 'order by' :-)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900