How can we synchronize SSIS and jobs across 2 servers - sql-server

We have a DRP and need to 'back-up' our ssis and jobs from the production server to the DRP server.
How can an ssis in SQL integration services be copied to the second server when the ssis in production is added/modified ?
Same thing for jobs.
We already us log shipping to synch our data and structure.
We are running SQL 2012 and we store the ssis in the package store.

It seems that you need a Prod to DRP copy procedure. You can export SSIS Projects and packages and script SSISDB Environments and SQL Agent Job definitions. After that, deploy SSIS Packages and restore SSIS Environments and Jobs from generated scripts. This can be packaged in a PowerShell script to automate it.

Related

Running SSIS Package automate failed in SSIS jobs

Having SSIS package, the flow is Data moves from Hadoop to SQL and from SQL to Postgres. Placed it in GitLab for CI CD. Made the dtsx automate by creating a job in SSIS. When running manually the job got succeeded. In automation the job is failing as Hadoop has no permission from SQL server. In GitLab file taken source as SQL server. Please suggest how to do.

How to use dtutil to migrate SSIS packages when SSISDB is used instead of MSDB?

I'm trying to use dtutil to automate the migration of hundreds of packages from SQL Server 2016 to SQL Server 2019 in another server.
It seems dtutil is unable to find the project/package folder.
All I found in docs and links seems to refer to msdb, but here, the folder/project/package data is stored in SSISDB database tables instead.
I don't think you can use DTUtil to migrate packages from SSISDB.
Based on the official documentation:
The dtutil command prompt utility is used to manage SQL Server Integration Services packages. The utility can copy, move, delete, or verify the existence of a package. These actions can be performed on any SSIS package that is stored in one of three locations: a Microsoft SQL Server database, the SSIS Package Store, and the file system.
Alternatives
There are several alternatives to migrate SSIS projects from SSISDB to another instance such as backup and restoring the SSISDB database, using a third-party solution, or using the Package import wizard.
You can refer to the following articles for more information:
Moving the SSISDB Catalog on a new SQL Server instance
Upgrade and Migrate SSIS Catalog and SSISDB to a New Server

Setup SQL Agent to run SSIS Package on second server

Company is setting up new instances of SQL Server and because I have many SSIS jobs, the idea was to setup a dedicated SSIS server. It seems to be a relatively common practice and makes a lot of sense. You're removing the resources needed for SSIS off the main database server versus how we've done it historically which is to store the packages in a directory on the main database server and having SSIS compete with the same resources as the actual database. Here's where I am confused.
I was told by our DBA to place a copy of the SSIS package on a file share directory on the SSIS server. Then using the SQL Agent on the database server, create a job to run the package like normal where Package Source = "File System" and Package location being the file share directory and file name on the SSIS server. Problem is I don't see how that kind of setup accomplishes the goal of removing the execution of the package off the main database server. Won't the main database server still be executing the package thus impacting performance and all we're accomplishing is using the SSIS server as an external drive or place to store the actual .dtsx files?

How could I generate SSIS package

The situation is that I have two DB servers with SQL Server, I need to transfer the data from Server A to Server B automatically every night.
So according to sql server data transfer from one server to another server, I created an SSIS project. And it manage to transfer data with good performance. But the question is, how do I export the project into SSIS package and run it every night?
I assume you are still running it from Visual Studio. To schedule it daily you will need to do the below,
Deploy your project to a SQL Server
Create an Agent job and schedule it.
Found a good article, sharing that with you here.
https://www.mssqltips.com/sqlservertutorial/9069/deploy-and-schedule-an-sql-server-integration-services-ssis-package-step-by-step/
You can either store the package as in the file system or in the SSIS catalog. I would say that storing it in the SSIS catalog is the best way to go here.
Before you deploy your package to the SSIS catalog you need to make sure that integration services is installed on your server as well as that the SSIS catalog has been created.
How to create ssis catalog
If all above is OK then proceed and deploy your package and create an agent job. Please notice that you need to set up permissions for the sql agent account so it can access your databases.

Add copy of Existing Package using File System

I'm copying packages from one server to another. When the package is of the type Integration Services Package it's easy to move but when it is T-SQL, I don't know how to move it.
I've moved all packages of the type Integration Services Package now, I'm left with the T-SQL type.
I'm not using a code based method, I'm using the SSIS interface to move the packages over.
I have 15 jobs that use T-SQL within them and no packages. I want to move them all over.
Transfer Job Task
You can use Transfer Job Task to copy SQL agent Job from a server to another one
The Transfer Jobs task transfers one or more SQL Server Agent jobs between instances of SQL Server.
The Transfer Jobs task can be configured to transfer all jobs, or only specified jobs. You can also indicate whether the transferred jobs are enabled at the destination.
Transfer Jobs Task
There are plenty of articles found online, as example:
Transfer SQL Server Jobs Task and Transfer SQL Server Logins Task in SSIS
Generate Scripts via SSMS
You can simply generate SQL scripts and execute them on the other server:
How can I move SQL Server Agent Jobs to different systems?

Resources