Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundling SQL Scripts and other file-based resources in SSIS project deployment

Is there a way you can add SQL scripts, or flat files in general, into SSIS projects such that they get bundled into the same ispac file with the dtsx packages?

Example use case: pulling the SQL code from an "execute SQL" task into a separate file where it can work with source control diffs more easily for peer reviews, etc.

It looks like miscellaneous files in the same project directory do NOT get bundled into the ispac, even when Visual Studio recognizes them as miscellaneous files in the project.

like image 729
wrschneider Avatar asked Oct 21 '25 03:10

wrschneider


1 Answers

Nope. You Can't.

Source : MSDN - Deploy Integration Services (SSIS) Projects and Packages

The project deployment file does not capture all of the information contained in the Integration Services project file (.dtproj extension). For example, additional text files that you use for writing notes are not stored in the project deployment file and thus are not deployed to the catalog.

Since SQL scripts would also be text files with .SQL extension, it looks like they won't be included in the .ispac archive deployment file, even if you place them in the "Miscellaneous" folder inside your SSIS Project.

like image 194
Shiva Avatar answered Oct 23 '25 07:10

Shiva



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!