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
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: Thursday, November 6, 2014 4:16 PM
Points: 386, Visits: 627
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: 174, 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 @ 2:32 PM
Points: 43,469, Visits: 40,619
Please note: 2 year old thread.

Gail Shaw
Microsoft Certified Master: SQL Server, 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


Group: General Forum Members
Last Login: Monday, November 16, 2015 12:16 PM
Points: 443, Visits: 1,068
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