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

query is taking long time to run Expand / Collapse
Posted Wednesday, August 21, 2013 12:21 PM



Group: Administrators
Last Login: Yesterday @ 9:43 PM
Points: 32,983, Visits: 17,263
It's not necessarily memory, and physical memory doesn't matter all the time. SQL Server has its own memory management and limits.

Perhaps you could start from the beginning and explain how you are querying the data, what client,and what is happening that you notice. Is your query showing as executing if you check SQL Server?

Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1486848
Posted Wednesday, August 21, 2013 4:02 PM

SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Friday, February 5, 2016 1:01 AM
Points: 874, Visits: 835
New persopn (2013-08-21)
here in this table 9112177 records are there 6.3gb data is available.

And from where are you running that query? Not SQL Server Management Studio I hope!

The problem is not with SQL Server, but with the client program. How is it written? Where are you putting all this data?

Erland Sommarskog, SQL Server MVP,
Post #1486988
Posted Wednesday, August 21, 2013 4:10 PM



Group: General Forum Members
Last Login: Today @ 4:10 PM
Points: 39,665, Visits: 36,791
New persopn (8/21/2013)
Hi all

here i am executing the query "select * from tmp_Brad_Product_Configuration_12months"

while executing this it is taking 25 mins above and it is still executing.

what may be the reason. can anyone please advise me on this.

Even if the code returned the result set in 25 milliseconds, my question would be, why do you want to return all rows of a table with more than 9 million rows in it to begin with?

--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Favorite Quotes:
"Has anyone ever told you that a query you have written runs too fast?" - Dwain Camps - 6 Mar 2014

Helpful Links:
How to post code problems
How to post performance problems
Post #1486990
Posted Thursday, August 22, 2013 3:05 AM


Group: General Forum Members
Last Login: Tuesday, February 2, 2016 8:46 PM
Points: 188, Visits: 581
Thank you all temporarily the issue solved. we have created the cluster index on table then it is solved.
Post #1487122
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse