{"id":122,"date":"2015-12-29T14:15:06","date_gmt":"2015-12-29T21:15:06","guid":{"rendered":"http:\/\/wolfcreekconsulting.com\/blog\/?p=122"},"modified":"2015-12-29T14:15:06","modified_gmt":"2015-12-29T21:15:06","slug":"ssis-development-tips","status":"publish","type":"post","link":"https:\/\/wolfcreekconsulting.com\/blog\/ssis-development-tips\/","title":{"rendered":"SSIS Development Tips"},"content":{"rendered":"<p>Here are a few tricks I learned while developing SQL Server Integration Services packages.<\/p>\n<h3>Set a relative path to your dtsConfig file.<\/h3>\n<p>This makes it much easier to execute your package with different configuration files. By default SSIS will try to import the configuration file from the path originally used to create it &#8211; which is often the Development server.<\/p>\n<p>To set a relative path to your config file:<\/p>\n<ol>\n<li>First create the config file, in the same folder as your package.<\/li>\n<li>Close the package in the SSIS designer.<\/li>\n<li>Right-click the package and select View Code, to view the XML source.<\/li>\n<li>Find the configuration file entry. You can search for the filename, or you can search for the string &#8220;DTS:config&#8221;.<\/li>\n<li>Look for the element named <span class=\"s1\">&lt;<\/span>DTS:Property <span class=\"s3\">DTS:Name<\/span><span class=\"s4\">=<\/span><span class=\"s5\">&#8220;ObjectName&#8221;<\/span><span class=\"s1\">&gt;. The value will be the\u00a0path and filename to the configuration file.<\/span><\/li>\n<li><span class=\"s1\">Edit this string\u00a0to be just the filename alone, and save the package XML.<\/span><\/li>\n<\/ol>\n<p><strong>From now on: open the solution by double-clicking the .SLN file from\u00a0Windows Explorer.<\/strong> The config file is relative\u00a0<strong>not<\/strong> to the package file, but to the <strong>Visual Studio IDE current directory<\/strong>. If you double-click the SLN file, Windows sets the current directory to the folder where the SLN file is. This means to keep it simple, keep your SLN file, Package file, and dtsConfig file in the same folder. If you want to split them into separate folders, remember to make your path in the package XML relative to the SLN file, not the Package file &#8211; note I have not tested this. \ud83d\ude42<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are a few tricks I learned while developing SQL Server Integration Services packages. Set a relative path to your dtsConfig file. This makes it much easier to execute your package with different configuration files. By default SSIS will try to import the configuration file from the path originally used to create it &#8211; which [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-sql-server-integration-services-ssis"],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wolfcreekconsulting.com\/blog\/wp-json\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wolfcreekconsulting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wolfcreekconsulting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wolfcreekconsulting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wolfcreekconsulting.com\/blog\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":1,"href":"https:\/\/wolfcreekconsulting.com\/blog\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/wolfcreekconsulting.com\/blog\/wp-json\/wp\/v2\/posts\/122\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/wolfcreekconsulting.com\/blog\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wolfcreekconsulting.com\/blog\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wolfcreekconsulting.com\/blog\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}