dbTalk Databases Forums  

statistics for performance

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss statistics for performance in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rogv
 
Posts: n/a

Default statistics for performance - 03-16-2009 , 03:34 PM







I have a request to run Statistics on a DB/Schema.
This will improve response time and query performance for a clients
data.
I have never done this. New to SQL Server.

Can some please provide me some ideas what needs to be done. Also,
how does the statistics improve performance?

Thanks

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: statistics for performance - 03-16-2009 , 05:20 PM






rogv (rvaedex23 (AT) gmail (DOT) com) writes:
Quote:
I have a request to run Statistics on a DB/Schema.
This will improve response time and query performance for a clients
data.
I have never done this. New to SQL Server.

Can some please provide me some ideas what needs to be done.
The simplest is to say sp_updatestats and your done. However, this only
samples the table. Running UPDATE STATISTICS WITH FULLSCAN on all tables
will give more complete statistics. It will on the other hand, take far
longer time.

Quote:
Also, how does the statistics improve performance?
The optimizer uses the statistics to estiamate the cost for different
query plans. More accurate statistics gives better odds for a better plan.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #3  
Old   
Gail Erickson [MS]
 
Posts: n/a

Default Re: statistics for performance - 03-16-2009 , 05:38 PM



In addition to Erland's advice, you may want to read this Books Online
topic: http://msdn.microsoft.com/en-us/library/ms190397.aspx. While written
for SQL Server 2008, it is applicable to previous versions of SQL Server as
well.

--
Gail Erickson [MS]
SQL Server Documentation Team
This posting is provided "AS IS" with no warranties, and confers no rights
Download the latest version of SQL Server 2005 Books Online from
http://technet.microsoft.com/en-us/s.../bb428874.aspx
Download the latest version of SQL Server 2008 Books Online from
http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx

"rogv" <rvaedex23 (AT) gmail (DOT) com> wrote

Quote:
I have a request to run Statistics on a DB/Schema.
This will improve response time and query performance for a clients
data.
I have never done this. New to SQL Server.

Can some please provide me some ideas what needs to be done. Also,
how does the statistics improve performance?

Thanks



Reply With Quote
  #4  
Old   
Tibor Karaszi
 
Posts: n/a

Default Re: statistics for performance - 03-17-2009 , 01:47 AM



I replied to this in another group. Please don't multipost.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"rogv" <rvaedex23 (AT) gmail (DOT) com> wrote

Quote:
I have a request to run Statistics on a DB/Schema.
This will improve response time and query performance for a clients
data.
I have never done this. New to SQL Server.

Can some please provide me some ideas what needs to be done. Also,
how does the statistics improve performance?

Thanks



Reply With Quote
  #5  
Old   
rogv
 
Posts: n/a

Default Re: statistics for performance - 03-17-2009 , 01:00 PM



On Mar 17, 3:47*am, "Tibor Karaszi"
<tibor_please.no.email_kara... (AT) hotmail (DOT) nomail.com> wrote:
Quote:
I replied to this in another group. Please don't multipost.

--
Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/tibor_karaszi

"rogv" <rvaede... (AT) gmail (DOT) com> wrote in message

news:6b3714d7-b904-4222-bbf4-7d2a0431f5cd (AT) v38g2000yqb (DOT) googlegroups.com...





I have a request to run Statistics on a DB/Schema.
This will improve response time and query performance for a clients
data.
I have never done this. New to SQL Server.

Can some please provide me some ideas what needs to be done. *Also,
how does the statistics improve performance?

Thanks- Hide quoted text -

- Show quoted text -
Thanks for the info.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.