unable to log execution of package BIDS 2012 (SSIS) - ssis

I have installed SSIS for VS2012 (SQL Server 2012) and I am able to create basic packages that run, however I am unable to get any of the logging to work. I have configured logging for text files and for the SQL Provider however, neither will log the execution of the package which is just a few SQL statements. I have configured all of the events to log in the details and in the advanced selections. The exec SQL tasks are in a Data Flow container, which I have also enabled logging.
When I look for the table msdb.dbo.sysssislog it is there but it is empty. If I configure the file writer, it will not create a file, which I specified to be in \windows\temp to avoid any permission problems.

If you deploy your packages to SSIS Catalog, you can have access to a better logging system that is offered by SSIS2012. You can Right-Click on your project under Integration Services Catalog and Report All Executions. This is highly recommended and makes your DBA's life much easier. you can learn more about how to set this up here.

Related

How to create and SSIS Dashboard for SSIS packages monitoring

I am new to SSIS. I have created few packages in SSIS which basically insert data from SQL Server to Oracle DB. Can someone assist me in creating dashboard which shows me execution status of Packages.
For ex: When it was last executed, When is the next execution time, What was last execution status, How many packages succeeded or failed.
Thanks
you can use "Reporting with the SQL Server Integration Services Catalog". If you deploy your project to SQL-SERVER catalog and then execute your packages(by job agent or Ad hoc execution) then you can use the reports from the SSMS.
Steps to achieve this method:
Open integration services catalog.
Open projects.
Right-click on your solution - reports - standard reports - all executions.
For more information, you can enter this link
Reporting with the SQL Server Integration Services Catalog
there are also options outside the management studio.
For example you can create a dashboard in grafana (I use it like this), I share a repository with examples to create it.
https://github.com/OsirisDBA/grafana-ssisdashboard
There is also a development that can be mounted on docker, also very interesting.
https://github.com/yorek/ssis-dashboard
Cheers

Is there a way to find out which task is currently running in SSIS when running in SQL Server Agent job?

When I have to tell my boss how long it will take to finish the current SSIS package, I can get an estimate when the job is running in Visual Studio environment, but I'm totally blind when it's running using SQL Server Agent.
Is there any way to find out where the SSIS package is at a certain moment or which task is currently running at a certain moment?
Creating your own log tables recording the steps that you are interested in works well if you are using SQL 2008 R2 (or earlier).
SQL 2012 has created a logging framework for you that will tell a host of information including the completed control flow steps. Within SSMS, look under Integration Services Catalogs and find your package. Right click and look under the Reports tab to get a detailed breakdown of past and current SSIS executions
SQL 2014 shows running jobs in Service Catalog.

Execute SSIS package from Visual Studio database project deployment?

We have a nightly process that creates scrubbed copies of our databases so that our developers can use them in their dev environment. They restore the databases and then run the database deployment from a database project in Visual Studio 2010 to get updated schemas.
I'm working on an SSIS package that will copy data out of the primary database into staging tables and then into an archive for reporting. Once completed I'd like the database deployment to kick off the SSIS package so that it updates the archive database, is there any way to do this?
The source and target databases will both be in the solution. I'm thinking the source database deployments will stay the same, with no dependencies on the target or vice versa. Deployments on the target db project are where the package execution would get called right after post-deployment.
Unless I'm missing something, add a step into your nightly process to start the SSIS package. SQL Agent has a job step explicitly for starting SSIS packages but if your process isn't that, just make an operating system call to DTEXEC
dtexec.exe /file C:\RepliScrubberPackage.dtsx

How to schedule SSIS packages to run from within an SQL Server agent job?

I have some task which I want to schedule and I did not work with SSIS before. I have created SSIS package using the Execute T-SQL Statement Task. It has run my procedures from DB.
But I need to run this procedures weekly using SSIS package. Is it possible and how can it be implemented?
Once this is implemented, I will send this SSIS package to the guys who are working with SQL server.
One possible option would be to use an SQL Server Agent job to run the SSIS packages.
Have a look at the following link. It explains how to create an SQL job that can execute an SSIS package on a scheduled basis. You can create a Credential and Proxy if you need to access any external resources outside of the database. If your package accesses only a database, you can possibly skip the steps that create Credential and Proxy Account.
The scheduling part is not explained in the below link but I think it should be easy enough to figure out on the SQL Server Agent Job creation dialog.
How do I create a step in my SQL Server Agent Job which will run my SSIS package?
Hope that gives you an idea.
SSIS package execution scheduling is done on the SSIS server, when the package is imported (or, on the machine you wrote the SSIS package on, if it's the Production machine - it isn't, right?)
The SSIS GUI (BIDS) offers a range of scheduling options.

Schedule SSIS package execution

How do I schedule SSIS to automatically execute a package from a file at a given time every day?
You have a few options, but I'll give you something that will allow you to get up and running quickly...
Open SQL Server Management Studio and connect to the Database Engine of the SQL Server that will run the job. This SQL Server should have SQL Server Agent installed and running.
Expand SQL Server Agent, expand Jobs.
Right-click, select New Job.
When you create your package step, for Type choose SQL Server Integration Services Package. For the Package source, choose File system. Then for the Package you can use the browse button (...) to browse for the DTSX file on the file system.
Go to Schedules and create job schedules as you normally would for any other SQL Server Agent job. In your case, set the Frequency to Daily, and set the value of Occurs once at to whatever time the job should run.
A couple of things to keep in mind...
Make sure that the SQL Server Agent service account (this is the default, you can choose an alternative security context if needed) has the permission to access the dtsx package on the filesystem.
This will only work if the server on which you're scheduling the job is also the Integration Services server. There are plenty of ways to handle remote package execution if you require it.
For additional information, please see https://msdn.microsoft.com/en-us/library/ms191439%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396
I prefer the above anwser but it is also possible with the windows Task Scheduler and start your ssis package with dtexec. (Only possible on the SSIS server) Check also execution with dtexec
First choice - if possible is to to schedule the package:
1) using the SQL Server Agent for the standard jobs
2) non-standard windows task scheduling, depends on what the package is doing
3) dtexec can play nicely but it depends on what ssis tasks the package runs
4) the more the ssis package does, the more it may require of the dtexec config
and set up to play nicely with the windows scheduler