0% found this document useful (0 votes)
9 views10 pages

BTS-ISEM-INS-006 Setup SQL Server EOD Job

Uploaded by

Khong Khong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views10 pages

BTS-ISEM-INS-006 Setup SQL Server EOD Job

Uploaded by

Khong Khong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

SETUP SQL SERVER

EOD JOB

CORAL iSEM™

Release Version 1.1


21 February 2020

PROVIDED BY

TESS INNOVATION SDN BHD

Privileged and Confidential Information


Any Unauthorized Use, Disclosure, Dissemination or Copying
Of This information is Strictly Prohibited
1 TABLE OF CONTENT
1 TABLE OF CONTENT .......................................................................................................................................... 1

2 DOCUMENT CONTROL ...................................................................................................................................... 2

3 PREFACE ........................................................................................................................................................... 3

4 INTRODUCTION ................................................................................................................................................ 5

4.1 OVERVIEW...................................................................................................................................................................5
4.2 PREREQUISITES .............................................................................................................................................................5

5 INSTALLATION SETUP ....................................................................................................................................... 6

5.1 HOW TO CREATE A JOB? ................................................................................................................................................6


5.2 HOW TO CREATE SCHEDULER? ........................................................................................................................................7
5.3 HOW TO VIEW EOD JOB HISTORY? ..................................................................................................................................8
5.3.1 How to Resize Job History Log? ....................................................................................................................8

6 APPENDIX ......................................................................................................................................................... 9

6.1 REFERENCES.................................................................................................................................................................9

BTS-ISEM-INS-006 Page 1 of 10
2 DOCUMENT CONTROL

Author: Hafizul

Revision Rev. Date Revised Section(s) Description


Record:
1.0 01-05-2018 All Change format according to ISO
1.1 21-02-2020 4.6 and 4.7 Updated Screenshots and Disclaimer
sections

BTS-ISEM-INS-006 Page 2 of 10
3 PREFACE
1. TESS Definition

TESS Innovation Sdn Bhd is hereinafter referred as “TESS” of the other part in this
document.

2. Document Confidentiality

This document contains information that is proprietary to TESS. This document, or any part
thereof, shall not be copied, reproduced, translated or reduced to any electronic medium or
machine readable form or disclosed to any third party without the prior written consent or
authorization of TESS.

3. Purpose of Document

The purpose of this document is to clearly provide guidance on how to setup SQL server
EOD job for CORAL iSEM™.

4. Intended Audience

➢ Project team from TESS

5. Document Control

This document is subject to change control. All changes to this document shall be
documented and distributed as “Release Version”. It will consist of the following: -

➢ Full replacement of the document; or


➢ Full replacement of a section in the document; or
➢ An addendum to the document.

Each revision will be assigned with a unique “Release Version” number and date. All pages
distributed within a Document Release Notice will have the appropriate Release Version
and Release Date indicated.

6. Screenshots

All sample screens as attached are for the reader’s viewing purpose only. The actual screen
displayed in the CORAL iSEM™ system shall be based on the specification of The
Customer’s as agreed upon.

BTS-ISEM-INS-006 Page 3 of 10
7. Disclaimer

➢ All advice given or recommendations made in this document are made in good faith on
the basis of the information provided and otherwise generally available or known to TESS at
the time of writing.

➢ No advice given or statements or recommendations made shall be in any circumstances


constitute or be deemed to constitute warranty by TESS as to the accuracy of such advices,
statement and recommendations.

➢ Subject to the contents of the Supply of Software, Licensing and Service Agreement
executed, TESS shall not be liable for any loss, expense, damage or claim arising out of the
advice given or not given or statements made or omitted to be made in connection with this
document.

8. Abbreviation &Definitions

Abbreviation Definition

BTS-ISEM-INS-006 Page 4 of 10
4 INTRODUCTION
4.1 Overview

SQL Server Agent is a Microsoft Windows service that executes scheduled administrative tasks,
which are called jobs in SQL Server 2017.

SQL Server Agent uses SQL Server to store job information. Jobs contain one or more job steps.
Each step contains its own task, for example, backing up a database. SQL Server Agent can run
a job on a schedule, in response to a specific event, or on demand. For example, if you want to
back up all the company servers every weekday after hours, you can automate this task.
Schedule the backup to run after 22:00 Monday through Friday; if the backup encounters a
problem, SQL Server Agent can record the event and notify you.

4.2 Prerequisites

1. Require to install SQL Server 2008 R2, 2012 SE, 2014 SE or 2016 SE
2. Require to add on services – SQL Server Agent

BTS-ISEM-INS-006 Page 5 of 10
5 INSTALLATION SETUP
5.1 How to Create a Job?

1. Click Start and then search for SSMS

2. In the Object Explorer, click the plus sign to expand server where you want to create a
SQL Server Agent job.
3. Click the plus sign to expand SQL Server Agent.
4. Right click the Jobs folder and select New Job…
5. In the New Job dialog box, on the General page, modify the general properties of the
job accordingly.
6. On the Steps page, organize the job steps. Main highlight as below:

Legend Description
Type Type of execution for SQL Server agent

• SQL Server Integration Services Package – To run the step using


SSIS packages
• Transact-SQL script(T-SQL) – To run the step using query
• Operating system (CmdExec) – To run the step using command
prompt.

Note:

To run CmdExec input the following:


<Program path><Parameter>

Run As The ID role to run this step as


Database The step will execute for the specific database

BTS-ISEM-INS-006 Page 6 of 10
5.2 How to Create Scheduler?

1. In Object Explorer, connect to an instance of SQL Server Database engine and then
expand that instance.

2. Expand SQL Server Agent> expand Jobs

3. Right click the job you want to schedule > click Properties

4. Select schedules page > click New

5. In the Name box, type a name for the new schedule

6. Tick Enabled checkbox if you want the schedule to take effect immediately following its
creation

7. Specify Schedule type – Recurring

8. Specify Frequency occurs – Daily and Recurs every 1 days

9. Specify Daily frequency time to start the EOD job

10. Set when is the first Duration start date and select No end date for the job scheduler

BTS-ISEM-INS-006 Page 7 of 10
5.3 How to View EOD Job History?

1. In Object Explorer, connect to an instance of the SQL Server Database engine and
expand that instance

2. Expand SQL Server Agent and expand Jobs

3. Right click a job and then click View History

4. In the Log File Viewer, view job history

5. To update job history, click Refresh

5.3.1 How to Resize Job History Log?

1. In Object Explorer, connect to an instance of the SQL Server Database engine and
expand that instance

2. Right click SQL Server Agent and then click Properties

3. Select the History page and then confirm that Limit size of job history logs to checked.

4. In the Maximum job history log size box, enter the maximum number of rows the job
history log should allow

5. In the Maximum job history rows per job box, enter the maximum number of job
history rows to allow for jobs

BTS-ISEM-INS-006 Page 8 of 10
6 APPENDIX
6.1 References

Note:
1. For full reference on SQL Server Agent, go to https://docs.microsoft.com/en-
us/sql/ssms/agent/sql-server-agent

BTS-ISEM-INS-006 Page 9 of 10

You might also like