Documente Academic
Documente Profesional
Documente Cultură
administration
Homework 3
Part-A
To automate administration:
SQL Server Agent Mail is required for alert notifications and automatic
notification when a job completes.
3. You must define schedules for when your job runs. Create a new
schedule for your Simple Backup job that will run the job every
weekday at noon.
Steps to define a schedule for Backup job:
6) Once you click the button “Change” you will get a new popup to enter
shedule details as shown below.
7) Click OK. It will save the schedule info and close the popup. And click Next
button to follow the next step.
8) In this step you will be asked to check the check list for all the tasks those
can be added in maintenance plan. Select “Backup Database (Full)” as shown
in the figure.
9) Follow the steps until you get following window. Once you get here Select one
or more databases from the list of databases by clicking Dropdown for
Databases.
10) From the above window, browse the folder location where to store the
backup files.
11) Continue the the steps until you get to Finish step.
12) Click Finish. Once you click finish, the wizard will execute the steps to create
a job to schedule database. Immediately you will notice a job created in Sql
Agent -> Jobs.
13) As per the schedule, the job runs (Repeatedly or One time) and it creates
backup file with name DB_NameMMddyyyyHHmm.bak (Ex:
NorthWind060420081912.bak) in the specified folder (Borwsed in the above
step).
Part-B
4) Specify an operator Name, pager E-mail name and set Pager on duty
schedule then click OK. Settings are to be done on screen shown below.
5. Microsoft SQL Server Agent proxy accounts define a security context
in which a job step can run. To set permissions for a particular job
step, create a proxy that has the required permissions for a SQL
Server Agent subsystem, and then assign that proxy to the job step.
To create a proxy account
For example, we would like to create a proxy called SSISProxy for job steps
that execute SSIS packages. This proxy will use the credentials of the domain
account PowerDomain\PowerUser. We would like to allow the testUser login to
execute SSIS packages with this proxy account in the SQL Server Agent jobs that it
owns.
GO
USE [msdb]
GO
2) Create a new proxy called SSISProxy and assign the PowerUser credentail to
it
EXEC msdb.dbo.sp_add_proxy
@proxy_name=N'SSISProxy',@credential_name=N'PowerUser',@enabled=1
GO
1) Checking the security settings for the SQL Server Agent service and the SQL
Server service on all servers intended to become target servers.
We recommend that both services should be running in Microsoft Windows
domain accounts.
2) Creating a master server operator (MSXOperator) on the master server.
MSXOperator is the only operator that can receive notifications for
multiserver jobs.
3) Starting the SQL Server Agent service on the master server.
4) Enlisting one or more servers as target servers.
If you have a large number of target servers, avoid defining your master server
on a production server. Otherwise, target server traffic can slow performance on
your production server. If you also forward events to a dedicated master server,
you can centralize administration on one server
• Each target server reports to only one master server. You must defect a
target server from one master server before you can enlist it into a different one.
• When changing the name of a target server, you must defect it before
changing the name and re-enlist it after the change.
• If you want to dismantle a multiserver configuration, you must defect all the
target servers from the master server.
• If you want to distribute maintenance plans additional configuration is
required.