SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Handling high volume data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

trex
Starting Member

USA
1 Posts

Posted - 04/18/2007 :  23:23:58  Show Profile  Reply with Quote
Hi Guys,

I am facing problems with concurrent access in SQL Server 2000,The scenario is that the DB contains one huge de-normalized table containing 40 million records.

The application frequently queries this table to populate other derived tables,the sql queries take a long time to return results.

So if one query is in execution the other user's query goes into a
wait mode.Please suggest how I can better this.

Or do I need to upgrade to 2005.

Regards,
Prashant

dinakar
Flowing Fount of Yak Knowledge

USA
2507 Posts

Posted - 04/19/2007 :  00:25:40  Show Profile  Visit dinakar's Homepage  Reply with Quote
IDentify the long running queries. Identify the columns in the WHERE condition of those queries. Do you have indexes on all/most of those columns?
Also, do you have regular maintenance jobs re-indexing/updating stats for that table.


************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

jezemine
Flowing Fount of Yak Knowledge

USA
2886 Posts

Posted - 04/19/2007 :  00:26:08  Show Profile  Visit jezemine's Homepage  Reply with Quote
is this large table written to often, or only read from? if you only read from it, you can add appropriate indexes without penalty to improve the selects. use profiler to find out which queries are slow, then have a look at the query plan of those selects to see what indexes would improve them.

alternatively you can try the index tuning wizard, see what it suggests.



www.elsasoft.org
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000