Introduction
Hi guys, this is the third article on how to Load data to a SQL Table from a SharePoint list using SSIS. If you have not checked my previous articles, then please go through them before starting this one.
- Created List and Store procedures - Load Data to an SQL Table from a SharePoint List Using SSIS - Part One
- Created Full and Incremental Package using SSIS - Load data to an SQL table from a sharepoint list Using SSIS - Part Two
In my previous articles, we have completed the first three major steps, now we will target the remaining ones.
- Build and Deploy the solution
- Schedule the SSIS packages.
According to an article on MSDN, integration services supports two deployment models:
- Project deployment model
- Legacy package deployment model
The project deployment model enables you to deploy your projects to the Integration Services server.
Note
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 Incremental Package Deployment feature, which lets you deploy one or more packages without deploying the whole project.
In this article, we will deploy our project using the project deployment model. For another method, you can check the MSDN article
Build and Deploy the solution
Before beginning with build and deployment, check the MS SQL Server version and targeted build version in Visual Studio.
To check MS SQL Server version, open the Microsoft SQL Server Management Studio with proper credentials, open the New Query window and type below command.
select @@VERSION

Check the targeted version in Visual Studio
Right-click on the solution - > Properties, check the Single startup project field value. It should match with your SQL Server version.
If the Single startup project field has a different SQL Server version, then change by,
Right-click on the project -> Properties, it will open the Configuration window then expand the Configuration Properties - >General, change the value of the TargetServerVersion field to your SQL server version.
Once the above step has completed, the Single startup project field should contain the new value.

Since I have a similar SQL server version and target server version, let's build the project and then deploy it.
To Build
Right-click on the project and select build options.


To Deploy
We can deploy our project in two ways.
Method 1
Right-click on the project and select deploy options.

This will open the SSIS deployment wizard. Remember, it will deploy the entire project, with all packages included.
If you want to deploy an individual package, simply right-click on the particular package itself and choose to Deploy it (This has been possible since SSIS 2016).
The SSIS deployment Wizard consists of five steps, i.e...
- Introduction
- Select Source
- Select Destination
- Review
- Results
Introduction
Click on the Next button

Select Source
Select the path of our .ispac file in source wizard i.e. Project Directory\Project\Employee_SSIS\bin\Development\Employee_SSIS.ispac
Select Destination
Here, we have to choose our destination.
ServerName - Enter .(dot) or actual server name
After selecting the proper authentication, click on the connect button to enable path field.

If the SSIS catalog already exists, then please choose it, otherwise, you can also create a new folder to store the project in.

You can also create a folder from Microsoft SQL Server Management Studio under Integration Services Catalogs -> SSISDB and select this folder in the destination path.

Once the path of destination is selected, click on the Next button.

Review
In this step, you will see an overview of the actions the wizard will take. Hit the Deploy button to start the deployment.

Results
The deployment will go through a couple of steps.

Now, the project has been successfully deployed to the server. You can find the project in the catalog of the SQL server.
Execute the package on SSIS server
Right-click on the package and hit execute to execute the package on the SSIS server.
























.
Join the conversation! Your thoughts help the community grow.