Using SSIS BIDS with Visual Studio 2012 / 2013

Welcome to Microsoft Marketing Speak hell. With the 2012 release of SQL Server, the BIDS, Business Intelligence Designer Studio, plugin for Visual Studio was renamed to SSDT, SQL Server Data Tools. SSDT is available for 2010 and 2012. The problem is, there are two different products called SSDT. There is SSDT which replaces the database … Read more

How to make an HTTP request from SSIS?

You can make use of the namespace System.Net.WebClient to make the Http request with the help of Script Task in SSIS. Following example shows how this can be achieved. The example was created in SSIS 2008 R2. Step-by-step process: Create a new SSIS package and create two variables namely RemoteUri and LocalFolder. Set the variable … Read more

How to import text files with the same name and schema but different directories into database?

Yes. You will want to use a Foreach File Container and then check the Traverse Subfolder option. Edit Apparently my answer wasn’t cromulent enough, so please accept this working code which illustrates what my brief original answer stated. Source data I created 3 folders as described above to contain files sample1.txt and sample2.txt C:\>MKDIR SSISDATA\SO\TEST\201304 … Read more

How to execute an SSIS package from .NET?

Here is how to set variables in the package from code – using Microsoft.SqlServer.Dts.Runtime; private void Execute_Package() { string pkgLocation = @”c:\test.dtsx”; Package pkg; Application app; DTSExecResult pkgResults; Variables vars; app = new Application(); pkg = app.LoadPackage(pkgLocation, null); vars = pkg.Variables; vars[“A_Variable”].Value = “Some value”; pkgResults = pkg.Execute(null, vars, null, null, null); if (pkgResults == … Read more