on 02-04-2014 11:39 AM
From long some tables are not statistics updated?how to update statistics in ms sql server 2008 through sap application? I checked in Db02-database options-statistics are active?but some tables are not updating ?
Hi Visu,
In SAP system go to DB20 and give table name in the field and use menu option.
goto Statistics->Create statistics
This will update the statistics to latest in your system
Hope this helps.
Regards,
Deepak Kori
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Visu
what is the size of DB? it possible you can run the DBCC check off peak time Kindly refer the SAP Note 142731: DBCC checks of SQL Server
Regards
Sriram
Hi Ram,
do NOT use auto shrink!!! this is deadly for SQL Server because your datafiles will end up with thousands of extends. This will slow down your SQL Server.
Nevertheless topic here are update statistics.
Yes activate auto update auto create and auto update async statistics.
Thats the correct setting.
Also check Traceflags 2371,3604.
I always recommend the SAP on SQL Server Blog where these questions are answered and explained.
Running SAP Applications on SQL Server - Site Home - MSDN Blogs
To check the date of the last statisticsupdate fo a table go to DBACOCKPIT -> Space -> Single Table Analysis -> Choose a table -> Indices --> Column "Last statistics upadate".
Here you can choose "update statistic now" if you want it.
Regards
Manuel
Hi Manuel
Kindly refer the Microsoft link about Auto shrink
http://technet.microsoft.com/en-us/library/ms189080(v=sql.105).aspx
Regards
Ram
Hi Ram,
this article only explains what auto shrink do. Its a normal feature aritcle about SQL Server. Its not a recommendation!
Autoshrink is NOT recommended for SAP Databases!!
I kindly refer you to the Best Practices of SQL Server Part I Article of Jürgen Thomas.
Page 38.
The problem is, as i said, the number of extends which will be created by the autoshrink feature.
Regards
Manuel
Hello Visu,
The row modification counter is used on table and index level. If a lot of data are changed, the automatic update statistics is executed more frequently.
The following links could be useful:
http://support.microsoft.com/kb/195565/en-us
http://msdn.microsoft.com/en-us/library/ms181055.aspx
Regards,
Eduardo Rezende
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To update individual table statistics you can use the Tx DB02.
I am not sure whether it will work on an SAP system running on MSSQL.
Regards
RB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.