Skip to content

Commit

Permalink
Merge pull request #14 from robboek/fixJobNames
Browse files Browse the repository at this point in the history
Fix Job names where no @customoper is specified.
  • Loading branch information
Amit Banerjee authored Nov 8, 2016
2 parents dcad1ef + 33c3b71 commit b5a751e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MaintenanceSolution/5_job_Maintenance.sql
Original file line number Diff line number Diff line change
Expand Up @@ -856,14 +856,14 @@ BEGIN
END
ELSE
BEGIN
EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=N'Daily Index Defrag',
EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=N'Weekly Maintenance',
@enabled=1,
@notify_level_eventlog=2,
@notify_level_email=3,
@notify_level_netsend=0,
@notify_level_page=0,
@delete_level=0,
@description=N'Inteligent defrag on one or more indexes for one or more databases.',
@description=N'Runs weekly maintenance cycle. Most steps execute on Sundays only. For integrity checks, depending on whether the database in scope is a VLDB or not, different actions are executed. See job steps for further detail.',
@category_name=N'Database Maintenance',
@owner_login_name=@jobowner,
@job_id = @jobId OUTPUT
Expand Down
4 changes: 2 additions & 2 deletions MaintenanceSolution/5_job_Maintenance_MEA.sql
Original file line number Diff line number Diff line change
Expand Up @@ -852,14 +852,14 @@ BEGIN
END
ELSE
BEGIN
EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=N'Daily Index Defrag',
EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=N'Weekly Maintenance',
@enabled=1,
@notify_level_eventlog=2,
@notify_level_email=3,
@notify_level_netsend=0,
@notify_level_page=0,
@delete_level=0,
@description=N'Inteligent defrag on one or more indexes for one or more databases.',
@description=N'Runs weekly maintenance cycle. Most steps execute on Fridays only. For integrity checks, depending on whether the database in scope is a VLDB or not, different actions are executed. See job steps for further detail.',
@category_name=N'Database Maintenance',
@owner_login_name=@jobowner,
@job_id = @jobId OUTPUT
Expand Down

0 comments on commit b5a751e

Please sign in to comment.