Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / Updatestats / 2 сообщений из 2, страница 1 из 1
13.08.2003, 12:25
    #32235197
bigmouse
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Updatestats
Доброго времени суток!
Вопрос такого плана. Если в свойствах базы включен флажок "Auto update statistic", то надо ли в пакетах DTS после загрузки порций данных вставлять exec sp_updatestats ?
Или база сама автоматически это сделает
...
Рейтинг: 0 / 0
13.08.2003, 12:31
    #32235212
Senin Viktor
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Updatestats
Auto значит Auto - т.е. сервер сам решит когда ему,что обновлять.

из BOL
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
When set to ON, existing statistics are automatically updated when the statistics 
become out-of-date because the data in the tables has changed. 

...

Therefore, SQL Server automatically updates this statistical information periodically 
as the data in the tables changes. The sampling is random across data pages, and 
taken from the table or the smallest nonclustered index on the columns needed by 
the statistics. After a data page has been read from disk, all the rows on the data 
page are used to update the statistical information. The frequency at which the 
statistical information is updated is determined by the volume of data in the 
column or index and the amount of changing data. For example, the statistics for a 
table containing  10 , 000  rows may need updating when  1 , 000  index values have 
changed because  1 , 000  values may represent a significant percentage of the 
table. However, for a table containing  10  million index entries,  1 , 000  changing 
index values is less significant, and so the statistics may not be automatically 
updated. SQL Server, however, always ensures that a minimum number of rows are 
sampled; tables that are smaller than  8  megabytes (MB) are always fully scanned 
to gather statistics.

The cost of this automatic statistical update is minimized by sampling the data, 
rather than analyzing all of it. Under some circumstances, statistical sampling will 
not be able to accurately characterize the data in a table. You can control the 
amount of data that is sampled during manual statistics updates on a table-by-
table basis by using the SAMPLE and FULLSCAN clauses of the UPDATE 
STATISTICS statement.
...
Рейтинг: 0 / 0
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / Updatestats / 2 сообщений из 2, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]