Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Using Ola's scripts..... (a bit off topic)

$
0
0

I just installed Ola's scripts. 

1. On his site is this example:

>>>>>>

EXECUTE dbo.IndexOptimize @Databases = 'USER_DATABASES',
 @FragmentationLow = NULL,
 @FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
 @FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
 @FragmentationLevel1 = 5,
 @FragmentationLevel2 = 30,
 @WaitAtLowPriorityMaxDuration = 1,
 @WaitAtLowPriorityAbortAfterWait = 'NONE'

>>>>>>

I presume this is running the script manually.

2. Under Sql Agent I also found this in the IndexOptimize scheduled job:

>>>>

sqlcmd -E -S $(ESCAPE_SQUOTE(SRVR)) -d MyUtiDBl -Q "EXECUTE [dbo].[IndexOptimize] @Databases = 'USER_DATABASES', @LogToTable = 'Y'" -b

>>>>

I guess the scheduled job is a template which I can update to include many of the parameters show in point 1).

A. Is that the correct idea?

B. If so, what parameters do you include other than those shown in 1)?

C. It appears that I can delete any of the Jobs created that I don't want to use. Right?

D. In the past I ran the rebuild index\ update stats jobs nightly. Seems that most folks on the Internet run those jobs only once a week.  How often do you run them?

TIA,

edm2


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>