Click here to monitor SSC
SQLServerCentral is supported by Redgate
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
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, January 19, 2016 9:20 AM
Points: 386, Visits: 630
Learn something new every day....and man there is a lot to learn.

the limit on include columns is 1023.

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
Post #955653
Posted Wednesday, January 9, 2013 11:29 PM


Group: General Forum Members
Last Login: Friday, August 7, 2015 1:54 AM
Points: 179, Visits: 47
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



Group: General Forum Members
Last Login: Yesterday @ 5:18 AM
Points: 45,619, Visits: 44,147
Please note: 2 year old thread.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
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


Group: General Forum Members
Last Login: Monday, October 10, 2016 5:25 AM
Points: 451, Visits: 1,079
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