小编Kin*_*oro的帖子

在 C# .NET 中运行 SSIS 包

我正在尝试从一个简单的控制台应用程序运行 SSIS 包。不幸的是我陷入了一些错误`

       using System;
       using System.Collections.Generic;
       using System.Linq;
       using System.Text;
       using System.Threading.Tasks;
       using Microsoft.SqlServer.Management.IntegrationServices;
       using System.Data.SqlClient;

         namespace SSIStutorial
     {
class Program
{
    static void Main(string[] args)
    {
        // Variables
        string targetServerName = "localhost";
        string folderName = "Projects";
        string projectName = "SSIS Tutorial";
        string packageName = "Lesson 1.dtsx";

        // Create a connection to the server
        string sqlConnectionString = "Data Source = cgol1793109; Initial Catalog = TEST; Integrated Security=True;";
        SqlConnection sqlConnection = new SqlConnection(sqlConnectionString);

        // Create the Integration Services object
        IntegrationServices …
Run Code Online (Sandbox Code Playgroud)

c# sql-server ssis etl

6
推荐指数
1
解决办法
1786
查看次数

标签 统计

c# ×1

etl ×1

sql-server ×1

ssis ×1