Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

SQL 2005 - SELECT query takes long time to retrieve Expand / Collapse
Author
Message
Posted Tuesday, July 20, 2010 8:59 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, February 25, 2014 2:26 PM
Points: 386, Visits: 626
Learn something new every day....and man there is a lot to learn.

the limit on include columns is 1023.


http://msdn.microsoft.com/en-us/library/ms190806.aspx

I stand corrected, when you remake the non clustered index I would make it a covering index over the select statement.

But 1st I'd do what Gail had suggested.


Twitter: @SQLBalls
Blog: http://www.SQLBalls.com
Post #955653
Posted Wednesday, January 09, 2013 11:29 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: 2 days ago @ 2:46 AM
Points: 119, Visits: 34
Create a non clustered index on the field [Time] and then execute the query again.
You should have a clustered index on the table also.
Post #1405193
Posted Thursday, January 10, 2013 12:03 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 11:47 AM
Points: 41,525, Visits: 34,442
Please note: 2 year old thread.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1405227
Posted Thursday, January 10, 2013 1:00 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, April 14, 2014 8:14 AM
Points: 374, Visits: 911
Thanks Roopesh,

As Gail said, been long time since i posted the issue. I resolved it, but dont rememeber how i did it then. In any case, will remember all the options posted in this thread for future.

IMHO, i think such replies to older posts, would be helpful to some other lost souls (even if the original person who posted stopped following the thread).
Post #1405618
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse