Deploy SSIS Package from TFS 2015 Update 2 - sql-server

I have seen some answers to this problem already, but I am in need of a dummies guide to how this is done.
We have a overcome some obstacles already and are now at the point where I am trying to get the resultant package deployed. What I am trying to master is how to create a nuget package so that our Octopus Deploy system can then deploy it to our various platforms.
I have seen this article PowerShell for SSIS deployment and maintenance that was inside this article Updating Deployed SSIS Package and is a great script for using PowerShell to deploy, but I need this to be run from TFS as a build step. From this, I am hoping to be able to generate a nuget package.
Is this possible?

If my understanding is correct, you are trying to create NuGet packages during your TFS build.
To achieve this, you need to add the NuGet Packager task. Check this link: https://www.visualstudio.com/en-us/get-started/package/build/team-build

Related

SSIS Build the project and try again

I keeping getting the following error, after adding an annotation in one of my workflow, per below
The package 'x.dtsx' has been modified since the last build. Build the project
and try again. (Microsoft.DataTransformationServices.VsIntegration)
I tried to debug/recompile, close and open the project and I still keep getting the same issue.
Has any of you encountered this error message? Can you please share how you have resolve it?
Thanks.
Change Deployment Model
Since you are using SSIS 2017 try changing the deployment model to Package deployment model instead of Project deployment model.
The project deployment model was introduced in SQL Server 2012 Integration Services (SSIS). With this deployment model, you were not able to deploy one or more packages without deploying the whole project. SQL Server 2016 Integration Services (SSIS) introduced the package deployment model, which lets you deploy one or more packages without deploying the whole project.
Microsoft has provided a very detailed article describing the differences between both deployment model. You can check it out:
Deploy Integration Services (SSIS) Projects and Packages
Similar issue
SSIS error Failed to start project
try deleting the build file(inside the bin folder) and build it back.

Deploying a SSIS 2016 packages (Project Deployment Model) to the file system

Working on a project to migrate SSIS 2008 projects to 2016 deployed to a File Server. Currently have the packages on the file server and prefer to keep it that way. I'm aware that the Project Deployment Model has been introduced since 2012.
Questions:
Can I change the migrated projects to Project Deployment Model and still deploy to the File System? Is changing to a Project Deployment Model a best practice?
Researching online, I can only find tutorials on how to deploy to SSISDB(Catalogue). Is the deployment to a File System still the same as previous versions ie. Build project > SSIS creates manfest file in project directory > open the manifest file to deploy?
Well, it is possible with certain limitations.
First, let's state that "deploying to File System" usually means that you store your package on a file system folder, and run it with dtexec. In that sense, deploy SSIS Project to File System is certainly possible, you can run any package from project file. For more details and examples - see MS Docs on dtexec.
However, this is not practical. By doing so, you loose a significant part of SSIS functionality introduced in 2012 version. For example, execution reports in SSIS Catalogue, and project environments which allow fine control and management of package parameters, including encryption of sensitive data like passwords. SSIS Catalogue keeps versions of deployed packages, so you can roll back to previous version easily.
Besides, SSIS Catalogue is fully supported in SSMS; on running package from project file - you are on your own to supply parameters; connection strings are usually passed from environments.
Yes, it's possible but not recommended (and not always possible). Package deployment model exists for backward compatibility. Once you convert your packages to Project Deployment Model you should deploy only to the SSISDB catalog on an instance of SQL Server.
Project Deployment Model contains packages, parameters, Connection managers and more very cool features introduced in 2012. This is the best option to work with SSIS these days.
https://learn.microsoft.com/en-us/sql/integration-services/packages/deploy-integration-services-ssis-projects-and-packages

How to validate SSIS packages when building Solution from commandline

I'm investigating how to do Continuous Integration with SSIS projects.
So far I've found out that it can be done by building the solution with devenv.exe or MSBuild.exe.
If its configured, Visual Studio can validate SSIS packages before they are run, to verify if the metadata in SSIS package is in sync with the source.
As far as I know, VS will only show validation errors/warnings when the SSIS package is open, but not when building the project.
Is it possible to have devenv.exe or MSBuild.exe also validate the packages during build?
I am using SSDT 2015 preview.
Dtexec.exe has a /Validate option which stops excecution after the validate phase.
this could easily be scripted into your process.

SSIS 2012 directory structure in Visual Studio

Recently i was given a task to upgrade SSIS packages from 2005 to 2012. They were not even on source control nor did they added packages to VS solution.
So i started with creating new VS solution and project. When i tried to organize packages into folder i couldn't find a way to create directories?
So my question is, is it possible to create directories for the SSIS packages?
AFAIK this is not supported. I would use projects or Solution Configurations.

Setup and Deployement in VB.Net having Sql Server Database in the Project

I have completed my Project in VB.Net and has published my project.
But i want to come out of these things
I have Sql Server Database in my project and i want my setup to add that database to sql server on installing my project.
I want my application to automatically detect sql server 2008 r2 and if it is not instaled i want it to install for me and then atach the database.
I dont want to add the database as a Attached database in my project.
i dont want to install crystal report in my application.
I have some unused refernces in my application in my project which i want to removed, i have tried the default visual studio remove unused references but still have some references like shockwave.dll log2net.dll etc.
The first step would be to switch to an MSI-based installer. This should allow you to resolve issues 3 and 5 (you control what the MSI includes). You can use a Visual Studio setup project, WiX or a commercial setup authoring tool.
For installing your database (issue 1), the best approach depends on how you use your database. Some installers simply copy the database files, others install it using custom actions and others execute SQL scripts. You should first determine how you want to install it and then ask a more specific question if you encounter problems.
To install SQL Server when it's not found (issue 2), you can use a prerequisite. This is done differently for each setup tool, so you first need to decide on a tool and then research how it supports prerequisites.
For issue 4, I'm not sure I know what to say. An MSI package will install what you include in it. If you don't add Crystal Reports in your package, then it won't be installed.
Visit
http://www.codeproject.com/Articles/10032/Deploy-SQL-Server-databases-easily-with-an-Install
Deploy SQL Server databases easily with an Installer class
Best regards!
Elias Sant Anna

Resources