Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL 2005 is too slow

Author  Topic 

dolishah
Starting Member

5 Posts

Posted - 2006-05-22 : 23:38:18
I m new with sql server. My sql server is responding too slow when large no of records are there.

What should I do?

Thanks in advance
Shradhha Shah

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-05-22 : 23:39:57
What is your query doing ? Is the tables indexed ?


KH

Go to Top of Page

dolishah
Starting Member

5 Posts

Posted - 2006-05-22 : 23:48:57
quote:
Originally posted by khtan

What is your query doing ? Is the tables indexed ?


KH





Yes it is index talbled and query simpaly updates one tables from 3/4 tables.
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-05-22 : 23:58:54
can you post your query ?


KH

Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-05-23 : 00:00:37
you have not given us any information that we can use to help you out.




-ec
Go to Top of Page

dolishah
Starting Member

5 Posts

Posted - 2006-05-23 : 00:10:46
quote:
Originally posted by khtan

can you post your query ?


KH





My problems is little different. I am using large data base having morethan 3 Million records. One single table has more than 2 million records. So times any simple query like select * from propdetail which give results in 30 sec in sql server 2000 will take morethan 2 min in sql 2005. I am using asp.net so result is time out expired in application.

Can i miss something ?


Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2006-05-23 : 17:50:31
Have you reindexed and updated statistics on the 2005 server? Is the server and instance for 2005 the same as the one 2000 is on? What are the specs for both? What type of disk subsystem are both these servers on? What do the performance monitor counters for physical read and write queue lengths look like when you run the query on the two systems? Have you looked at Profiler or the execution plan to determine if you have issues?

You really aren't selecting 2 million records back into your asp.net application are you? If so, rewrite the application because that's stupid.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2006-05-23 : 18:39:12
>> You really aren't selecting 2 million records back into your asp.net application are you? If so, rewrite the application because that's stupid.

Maybe the users want to scroll through 2 million rows. I've had users that didn't realise what that meant.

Does that query always take 2 mins? Maybe it's something else going on on the server that's holding it up.
Try it in query analyser (thingamy management thingamy - doesn't have the same ring) on the server to see what happens - return results in text rahter than a grid so you can see when they start.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-05-23 : 18:44:20
I'm betting that the ethernet is running 10mbit half duplex instead of 100 or 1000 Full..



-ec
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-05-23 : 18:45:01
quote:
Originally posted by derrickleggett
...If so, rewrite the application because that's stupid...

You just gave the correct answer to 95% of the questions posted on SQLTeam.




CODO ERGO SUM
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2006-05-23 : 18:49:46
quote:
Maybe the users want to scroll through 2 million rows. I've had users that didn't realise what that meant.



If so, rewrite the application because that's stupid.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-05-23 : 18:51:13
quote:
Originally posted by eyechart

I'm betting that the ethernet is running 10mbit half duplex instead of 100 or 1000 Full..



-ec



Or it could be a network card thowing a lot of errors when it fails to auto-negotiate the correct speed.

Or maybe the new server is located on the other side of a WAN link.






CODO ERGO SUM
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-05-25 : 11:34:55
any update on this issue?



-ec
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-05-25 : 12:04:29
I think you need a new power cord for SQL 2k5

It's kinda like the M5 unit built by Dr. Dayson



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-05-25 : 19:00:50
quote:
Originally posted by X002548

I think you need a new power cord for SQL 2k5...

Don't let dirty electrons slow down your queries!

You need the Monster Cable PowerLine 300, High Performance Power Cord. At only $99.95 each, they're just what SQL Server 2005 needs:
http://www.monstercable.com/power/productPagePower.asp?pin=1072&LastPage=Power%20Cords





CODO ERGO SUM
Go to Top of Page

mr_mist
Grunnio

1870 Posts

Posted - 2006-05-26 : 03:53:02
quote:
Originally posted by dolishah

I m new with sql server. My sql server is responding too slow when large no of records are there.

What should I do?



Remove the large number of records.

-------
Moo. :)
Go to Top of Page

blindman
Master Smack Fu Yak Hacker

2365 Posts

Posted - 2006-05-26 : 10:00:53
Excellent advice. Truncate the table, and then your query will run lickety-split.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-05-26 : 12:24:50
Or it could be environmental concerns...do you have a constant humidty rate of 76 degrees and constant temp of 68?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page
   

- Advertisement -