Solved

sql jobs - ssis packages

Posted on 2011-09-23
4
636 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

632 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