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

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


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Yesterday @ 3:11 PM
Points: 31,368, Visits: 15,837
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, December 12, 2014 1:02 AM
Points: 823, Visits: 753
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, www.sommarskog.se
Post #1486988
Posted Wednesday, August 21, 2013 4:10 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 2:11 PM
Points: 35,772, Visits: 32,441
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

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

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

Group: General Forum Members
Last Login: Friday, December 12, 2014 10:51 AM
Points: 147, Visits: 423
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