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

‘Microsoft.ACE.OLEDB.16.0’ provider is not registered on the local machine. (System.Data)

For anyone that is still stuck on this issue after trying the above. If you are right-clicking on the database and going to tasks->import, then here is the issue. Go to your start menu and under sql server, find the x64 bit import export wizard and try that. Worked like a charm for me, but … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)