DTSPackageType 열거형

정의

패키지를 만든 도구를 식별합니다.

public enum class DTSPackageType
public enum DTSPackageType
type DTSPackageType = 
Public Enum DTSPackageType
상속
DTSPackageType

필드

Default 0

정의되지 않았습니다.

DTSDesigner 2

SQL Server 2000에서 디자이너에서 패키지를 만들게 지정합니다.

DTSDesigner100 5

패키지가 SQL Server 2008 Integration Services(SSIS)의 SSIS 디자이너에서 생성되었음을 지정합니다.

DTSWizard 1

SQL Server 가져오기 및 내보내기 마법사를 사용하여 패키지를 만들었음을 지정합니다.

SQLDBMaint 6

DBMaint 클라이언트에서 패키지를 만들었음을 지정합니다.

SQLReplication 3

변환 가능한 구독을 지원하도록 패키지를 생성했음을 지정합니다.

예제

다음 코드 예제에서는 Integration Services 패키지 샘플 중 하나를 로드하고 이 열거형의 값 중 하나인 패키지 유형을 표시합니다.

using System;  
using System.Collections.Generic;  
using System.Text;  
using Microsoft.SqlServer.Dts.Runtime;  

namespace Microsoft.SqlServer.SSIS.Samples  
{  
    class Program  
    {  
        static void Main(string[] args)  
        {  
            Application app = new Application();  
            Package pkg= new Package();  
            pkg = app.LoadPackage(@"C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\SmoTablesDBCC\SmoTablesDBCC\SmoTablesDBCC.dtsx", null);  

            // Display the package type.  
            Console.WriteLine("The package type is: {0}", pkg.PackageType);  
        }  
    }  
}  
Imports System  
Imports System.Collections.Generic  
Imports System.Text  
Imports Microsoft.SqlServer.Dts.Runtime  

Namespace Microsoft.SqlServer.SSIS.Samples  
    Class Program  
        Shared  Sub Main(ByVal args() As String)  
            Dim app As Application =  New Application()   
            Dim pkg As Package =  New Package()   
            pkg = app.LoadPackage("C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\SmoTablesDBCC\SmoTablesDBCC\SmoTablesDBCC.dtsx", Nothing)  

            ' Display the package type.  
            Console.WriteLine("The package type is: {0}", pkg.PackageType)  
        End Sub  
    End Class  
End Namespace  

샘플 출력:

패키지 유형: DTSDesigner100

적용 대상