SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Training
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds Follow SQL Server Performance on Twitter


Article Topics

All Articles
Performance Tuning
Audit
Business Intelligence
Clustering
Reporting Services
SQL Azure
Developer
General DBA
PowerShell
Windows Server
ASP.NET / ADO.NET
SQL Azure

USEFUL SITES :

ASP.NET Tutorials
Windows and SQL Azure Tutorials
Cloud Hosting Magazine
SharePoint Tutorials
Windows Server Help

Write for Us

Share your SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

Visual Studio LightSwitch Tutorial
Manage Database Projects With Visual Studio 2010
Auditing with Microsoft Assessment and Planning (MAP) Toolkit 5.0 - ...
IIS Application Pools for ASP.NET Apps

More     
 
Latest FAQ's

SQL Agent job getting suspended.
Queries which include DMFs return a syntax error ...
Could not find stored procedure 'dbo.sp_MSins_dboTest'
How to change server name when replication is enabled.

More     
   
Latest Software Reviews

Confio Ignite PI 8 E studio De Un Caso
dbForge Review
Spotlight on ApexSQL Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Data Diff - Server-based database comparison tool ...

More     

articles >> general dba >> Using The Transfer Jobs Task in SQL ...

Using The Transfer Jobs Task in SQL Server Integration Services

By : Ashish Kumar Mehta
Oct 12, 2009

Introduction

SQL Server Integration Services (SSIS) is a Business Intelligence tool which can be used by database developers or administrators to perform Extract, Transform & Load (ETL) operations. In my previous article entitled Using Transfer Error Messages and Transfer Master Stored Procedures Tasks in SSIS I discussed how to use the Transfer Error Messages Task and Transfer Master Stored Procedure Tasks which are available in SQL Server 2005 Integration Services and later versions. In this article I will examine the use of the Transfer Jobs Task which is available in SQL Server 2005 and later versions.


Overview of SQL Server Tasks in SSIS 2005 & Later Versions

The SQL Server Tasks within SSIS can be used to copy, modify and delete SQL Server objects and data. The different types of SQL Server Tasks available in SSIS are Execute SQL Task, Bulk Insert Task, Transfer Database Task, Transfer Login Task, Transfer SQL Server Objects Task, Transfer Error Message Task, Transfer Master Stored Procedure Task and Transfer Jobs Task. If you are new to SQL Server Integration Services then I would recommend you to start with my previous article entitled SQL Server 2008 Integration Services Tasks to understand different types of Integration Services Tasks which are available in SQL Server 2005 and later versions. However, in this article you will see an example for how to configure and use Transfer Jobs Task.


Overview of the Transfer Jobs Task

Database Administrators can use the Transfer Jobs Task to transfer one or more SQL Server Agent Jobs between different SQL Server instances. The Transfer Jobs Task can be configured to transfer not only a single job but also all the SQL Server Agent Jobs from one instance of SQL Server to another instance. There is one more very important option available -  to specify whether the transferred SQL Server Agent Jobs should be enabled at the destination or not. The Transfer Job Task can be configured to handle the below scenarios:

a)      Overwrite an existing SQL Server Agent Job if there are existing jobs at the destination.

b)     If a duplicate SQL Server Agent Job exists in the destination server, then fail the Transfer Jobs Task.

c)      Skip the Transfer Jobs Task where there is a duplicate job existing in the destination server.

Create a SQL Server Agent Job to Backup Products Database

You can create a new SQL Server Agent Job namely “Products Database Backup” to backup the Products database by expanding the SQL Server Agent Node and then right clicking the Jobs node to select the New Jobs… option from the drop down menu as shown in the snippet below.

In New Job window, select the General page on the left side panel and provide the Name, Owner, Category and Description for the job. However, you will also need to ensure that the Enabled checkbox is selected, this will make sure that once the job is created successfully it will be enabled and will run on the specified schedule. 

Next, select the Steps page on the left side panel and click the New… button at the bottom of the window to add a new step.

 

In the New Job Step window, you will need to provide a suitable step name, select type as “Transact-SQL script (T-SQL)” from the drop down list and choose database as “master”. Next, enter  the below TSQL code in the command text box to backup the Products database.

 

Backup Database Products

To Disk = N'E:\DatabaseBackups\Products.Bak'

With Init

 

  

Ask A Question In the Forums

    Next Page>>    












C# Help and Tutorials | PHP MySQL Tutorial | Sharepoint Tutorial | Azure Tutorial | Cloud Hosting Magazine | ASP.NET Tutorials | ASP.NET Hosting | Windows Server Hosting | Windows Server Help | Windows Phone Pro | Silverlight Ace | LightSwitch Tutorial | Visual Studio Tutorials | Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | SQL Server Training Videos | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Sonasoft | Andy Khanna | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 2010 Jude O'Kelly. All rights reserved