Solved

sql jobs - ssis packages

Posted on 2011-09-23
4
626 Views
Last Modified: 2012-05-12
Hello guys just a couple of questions.

1:- Apart from ssis being more powerful and having lots of extra features what’s the main difference between a ssis package and a sql server agent job.
The reason I am asking is because I was going to create a ssis package to run a sp, but then I realised I could just create a job.

2:- I know jobs are located under SQL Server Agent Jobs, but where are they actually stored on sql.

3:- ssis packages, if I create a ssis package how do I schedule the package.

Thanks.


0
Comment
Question by:aneilg
4 Comments
 
LVL 10

Accepted Solution

by:
gaurav05 earned 100 total points
ID: 36585792
Hi,

your 3rd question answer:

The logic is like this:
      The job executor account needs the roles of sysadmin,  SQLAgentUserRole, SQLAgentReaderRole,  SQLAgentOperatorRole
      The job needs to be run under Proxy account
      The job executor account is better to be used to create SSIS package and so you are sure the job executor account has the right to run this SSIS package.
 
The following steps can be followed to get the job done.
The work environment is MS SQL Server Management Studio and you log in as sa.
 
I. Create job executor account
Highlight Security->New Login, say to make login as devlogin, type your password, default database can be your target database.
Server roles: check  sysadmin
User mapping: your target database
Msdb database: you make sure to include SQLAgentUserRole, SQLAgentReaderRole,  SQLAgentOperatorRole
Then click OK
 
II. Create SQL proxy account and associate proxy account with job executor account
Here is the code and run it the query window.
 
Use master
CREATE CREDENTIAL [MyCredential] WITH IDENTITY = 'yourdomain\myWindowAccount', secret = 'WindowLoginPassword'
Use msdb
Sp_add_proxy @proxy_name='MyProxy', @credential_name='MyCredential'
Sp_grant_login_to_proxy @login_name=' devlogin', @proxy_name='MyProxy'
Sp_grant_proxy_to_subsystem @proxy_name='MyProxy', @subsystem_name='SSIS'
 
III. Create SSIS package
In MS SQL Server Business Intelligence Development Studio, you use job executor account devlogin to create the SSIS package (DTS) and make sure you can execute this package in SQL Server Business Intelligence Development Studio. Compile/build this package.
 
IV. Create the job, schedule the job and run the job
In SQL Server Management Studio, highlight SQL Server Agent -> Start. Highlight Job ->New Job¿, name it , myJob.
Under Steps, New Step, name it, Step1,
Type: SQL Server Integration Service Package
Run as: myProxy
Package source: File System
Browse to select your package file xxx.dtsx
Click Ok
Schedule your job and enable it
 
Now you can run your job
0
 
LVL 15

Assisted Solution

by:Anuj
Anuj earned 75 total points
ID: 36585801
1. SSIS is just a component of SQL Server used to perform data migration task which includes complex lookup and transfer. SSIS is otherwise called ETL, Extract Transfer and Load, which is mainly used to build datawarhouse from OLTP database.

SQL Server Agent is a Microsoft Windows service that executes scheduled administrative tasks, which are called jobs. SQL Server Agent uses SQL Server to store job

2. The jobs are stored in msdb database, you can query the following views and tables on msdb.for more details
sysjobs
sysjobservers
sysjobsteps
sysjobstepslogs
sysjobschedules
sysjobs_view
sysdbmaintplan_jobs

3.You should use SQL Server jobs for scheduling SSIS packages.

0
 
LVL 5

Assisted Solution

by:MrNetic
MrNetic earned 75 total points
ID: 36585886
Hi,

Answering your question :


1:- Apart from ssis being more powerful and having lots of extra features what’s the main difference between a ssis package and a sql server agent job.
The reason I am asking is because I was going to create a ssis package to run a sp, but then I realised I could just create a job.

In few words, SSIS PACKAGE = PROCESS | SQL AGENT JOB = SCHEDULER

2:- I know jobs are located under SQL Server Agent Jobs, but where are they actually stored on sql.
For a begginer, you should use SQL SERVER MANAGEMENT STUDIO to handle your jobs.

3:- ssis packages, if I create a ssis package how do I schedule the package.
See Anwer 1

Thanks.
0
 

Author Comment

by:aneilg
ID: 36598320
thanks guys.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now