Solved

sql jobs - ssis packages

Posted on 2011-09-23
4
635 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Web Add-in Where is Visual Basic used 9 81
VB script for outlook to copy mail to OneNote 2 41
When are cursors useful? 8 61
What does "Between" mean? 6 47
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
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 …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

739 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