Click here to Skip to main content
15,885,757 members
Home / Discussions / Database
   

Database

 
AnswerRe: Why SQL server maintenance plan Cannot rebuild clustered index offline? Pin
Richard Deeming26-Oct-16 3:23
mveRichard Deeming26-Oct-16 3:23 
QuestionConfiguration from a parent variable "ServerName" did not occur because there was no parent variable collection or Edit the existing Package Configurations using C# Pin
indian14321-Oct-16 12:12
indian14321-Oct-16 12:12 
QuestionVisual Studio Database Projects and General Use Pin
cjb11018-Oct-16 2:38
cjb11018-Oct-16 2:38 
AnswerRe: Visual Studio Database Projects and General Use Pin
Matt U.18-Oct-16 10:12
Matt U.18-Oct-16 10:12 
GeneralRe: Visual Studio Database Projects and General Use Pin
cjb11019-Oct-16 20:56
cjb11019-Oct-16 20:56 
GeneralRe: Visual Studio Database Projects and General Use Pin
Matt U.20-Oct-16 5:01
Matt U.20-Oct-16 5:01 
SuggestionIncrease the Execution time or Connection Time out property of SSIS package from C# code Pin
indian14312-Oct-16 13:40
indian14312-Oct-16 13:40 
QuestionTo run a SSIS package outside of SQL server data tools you must install populate filecollection of integration services or higher Pin
indian14310-Oct-16 6:39
indian14310-Oct-16 6:39 
Hi,

I have been going through a tough time in resolving this issue, I am getting the following error when I am trying to execute a package that's on the MSDB database, it says "Source : Microsoft.SqlServer.Dts.Runtime.TaskHost, ErrorCode : -1073679321, Description : To run a SSIS package outside of SQL Server Data Tools you must install Populate FileCollection of Integration Services or higher."

My code is as below:
static void Main(string[] args)
{
    Application app = new Application();
    Package loadedPkg = app.LoadPackage(@"\bsc\cscm\edh_imdb\DataExchange\ShieldLink\NewFolder\Brandon\TestSSISPackage\SgLgReporting_SLNewBusinessInProgress.dtsx", null);

    // Save the package to SQL Server.
    //app.SaveToSqlServer(loadedPkg, null, "WSQL569S,50101", null, null);
    app.SaveToSqlServer(loadedPkg, null, "WSQL569S,50101", null, null);

    ////Application integrationServices = new Application();
    //Package myPackage = app.LoadFromSqlServer(@"\MSDB\Data Collector\SAW\Load_MEET_Errors\SgLgReporting_SLNewBusinessInProgress.dtsx", "WSQL569S,50101", String.Empty, String.Empty, null);

    var temp = LaunchPackage("sql", string.Empty, "SgLgReporting_SLNewBusinessInProgress.dtsx");

    //myPackage.Execute();
}

public static int LaunchPackage(string sourceType, string sourceLocation, string packageName)
{

    string packagePath;
    Package myPackage;
    Application integrationServices = new Application();

    // Combine path and file name.<br />
    packagePath = Path.Combine(sourceLocation, packageName);

    switch (sourceType)
    {
        case "file":
            // Package is stored as a file.<br />
            // Add extension if not present.<br />
            if (String.IsNullOrEmpty(Path.GetExtension(packagePath)))
            {
                packagePath = String.Concat(packagePath, ".dtsx");
            }
            if (File.Exists(packagePath))
            {
                myPackage = integrationServices.LoadPackage(packagePath, null);
            }
            else
            {
                throw new ApplicationException("Invalid file location: " + packagePath);
            }
            break;
        case "sql":
            // Package is stored in MSDB.<br />
            // Combine logical path and package name.<br />
            if (integrationServices.ExistsOnSqlServer("SgLgReporting_SLNewBusinessInProgress", "WSQL569S,50101", String.Empty, String.Empty))
            {
                myPackage = integrationServices.LoadFromSqlServer("SgLgReporting_SLNewBusinessInProgress", "WSQL569S,50101", String.Empty, String.Empty, null);
            }
            else
            {
                throw new ApplicationException("Invalid package name or location: " + packagePath);
            }
            break;
        case "dts":
            // Package is managed by SSIS Package Store.<br />
            // Default logical paths are File System and MSDB.<br />
            if (integrationServices.ExistsOnDtsServer(packagePath, "."))
            {
                myPackage = integrationServices.LoadFromDtsServer(packagePath, "localhost", null);
            }
            else
            {
                throw new ApplicationException("Invalid package name or location: " + packagePath);
            }
            break;
        default:
            throw new ApplicationException("Invalid sourceType argument: valid values are 'file', 'sql', and 'dts'.");
    }

    return (Int32)myPackage.Execute();

}

The things I have tried are
  1. Checked the SQL Server Management Studio for SQL Server version, it is 12.0 and I am also running Sql Server Data Tools Version 12.0.
  2. Checked the SQL Server Integration Services running on the Server, yes it is 11.0 version is running on the Server.
  3. Checked various different tools on the Server, they are as below
Microsoft SQL Server Management Studio: 11.0.6020.0
Microsoft Analysis Services Client Tools: 11.0.6020.0
Microsoft Data Access Components (MDAC): 6.3.9600.17415
Microsoft MSXML: 3.0 6.0
Microsoft Internet Explorer: 9.11.9600.18450
Microsoft .NET Framework: 4.0.30319.34014
Operating System: 6.3.9600
  1. I have Sql Server Client Version installed on my machine, but Server version is not installed, hence I don't have SSIS tools on my local machine from where I am running the Console app to execute SSIS Package. Could it be the problem? Can I just install SSIS tools.
Here is my machine Configuration:

Microsoft SQL Server Management Studio: 11.0.3000.0
Microsoft Analysis Services Client Tools: 11.0.3000.0
Microsoft Data Access Components (MDAC): 6.1.7601.17514
Microsoft MSXML: 3.0 5.0 6.0
Microsoft Internet Explorer: 9.11.9600.18449
Microsoft .NET Framework: 4.0.30319.42000
Operating System: 6.1.7601

Is there anything that I am missing?

I have been searching and googling the whole day to resolve this issue. Any kind help is much appreciated. Thanks in advance my friends.
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

AnswerRe: To run a SSIS package outside of SQL server data tools you must install populate filecollection of integration services or higher - resolved Pin
indian14312-Oct-16 12:58
indian14312-Oct-16 12:58 
QuestionExport Access db to Sql Server db everyday Pin
meeram396-Oct-16 15:09
professionalmeeram396-Oct-16 15:09 
AnswerRe: Export Access db to Sql Server db everyday Pin
Eddy Vluggen10-Oct-16 6:58
professionalEddy Vluggen10-Oct-16 6:58 
QuestionIdentity_Column Pin
Member 111616253-Oct-16 19:43
Member 111616253-Oct-16 19:43 
AnswerRe: Identity_Column Pin
Chris Quinn3-Oct-16 23:11
Chris Quinn3-Oct-16 23:11 
AnswerRe: Identity_Column Pin
Swinkaran4-Oct-16 1:17
professionalSwinkaran4-Oct-16 1:17 
QuestionSQL Server Reporting Services Query to Get Stored Procedure Name for Shared Dataset Pin
David_4129-Sep-16 11:48
David_4129-Sep-16 11:48 
AnswerRe: SQL Server Reporting Services Query to Get Stored Procedure Name for Shared Dataset Pin
Mycroft Holmes29-Sep-16 12:43
professionalMycroft Holmes29-Sep-16 12:43 
GeneralRe: SQL Server Reporting Services Query to Get Stored Procedure Name for Shared Dataset Pin
David_4129-Sep-16 12:51
David_4129-Sep-16 12:51 
QuestionExecuting SSIS Package from C# Console App Pin
indian14328-Sep-16 4:51
indian14328-Sep-16 4:51 
AnswerRe: Executing SSIS Package from C# Console App - resolved Pin
indian14328-Sep-16 12:09
indian14328-Sep-16 12:09 
Question.mdb file problem Pin
Member 1275753624-Sep-16 6:19
Member 1275753624-Sep-16 6:19 
AnswerRe: .mdb file problem Pin
Mycroft Holmes24-Sep-16 14:49
professionalMycroft Holmes24-Sep-16 14:49 
GeneralRe: .mdb file problem Pin
Richard Deeming26-Sep-16 2:12
mveRichard Deeming26-Sep-16 2:12 
GeneralRe: .mdb file problem Pin
Mycroft Holmes26-Sep-16 12:33
professionalMycroft Holmes26-Sep-16 12:33 
AnswerRe: .mdb file problem Pin
Victor Nijegorodov25-Sep-16 3:31
Victor Nijegorodov25-Sep-16 3:31 
QuestionHow to update Oracle DB from SQL server through link server? Pin
hmanhha22-Sep-16 20:20
hmanhha22-Sep-16 20:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.