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
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Auto statistics
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

TRACEYSQL
Aged Yak Warrior

589 Posts

Posted - 04/08/2007 :  09:19:08  Show Profile  Send TRACEYSQL an ICQ Message  Reply with Quote
Our databases is heavily used i have seem on some days the data is 7 gig when they run massive reports ..The erp uses Z_ tables for this...

I was thinking of turning of the auto statistics on the database and
running this nightly instead

DBCC UPDATEUSAGE ('DBNAME')

Anyone suggest that i do with FULL SCAN each night.

Thanks

dinakar
Flowing Fount of Yak Knowledge

USA
2507 Posts

Posted - 04/08/2007 :  11:20:29  Show Profile  Visit dinakar's Homepage  Reply with Quote
Whether you should use FULLSCAN or the default percentage depends on your data and the inserts/updates/deletes happening on the table. You could perhaps try with the default and if you have bad query plans, go for FULLSCAN.

************************
Life is short. Enjoy it.
************************
Go to Top of Page

TRACEYSQL
Aged Yak Warrior

589 Posts

Posted - 04/08/2007 :  17:13:28  Show Profile  Send TRACEYSQL an ICQ Message  Reply with Quote
I may switch to full to see the effects.
I look in to the pros and cons
Thanks
Go to Top of Page

TRACEYSQL
Aged Yak Warrior

589 Posts

Posted - 04/08/2007 :  17:39:12  Show Profile  Send TRACEYSQL an ICQ Message  Reply with Quote
In database there is auto create statistics and auto update statistics
which one is the DBCC UPDATESTATS that i should turn off

I put in a maintnenace plan to do 50% optimatization each night
then which one to turn off

Thanks
Go to Top of Page

rmiao
Flowing Fount of Yak Knowledge

USA
7266 Posts

Posted - 04/09/2007 :  15:54:11  Show Profile  Reply with Quote
DBCC UPDATEUSAGE corrects the rows, used, reserved, and dpages columns of the sysindexes table for tables and clustered indexes. It's different from update statistics. And you can turn off 'auto update statistics' if you like maintenance plan to handle it.

Edited by - rmiao on 04/09/2007 15:56:24
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.2 seconds. Powered By: Snitz Forums 2000