DTSPackageType Numaralandırması
Paket oluşturulan araç tanımlar.
Ad Alanı: Microsoft.SqlServer.Dts.Runtime
Derleme: Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS içinde.dll)
Sözdizimi
'Bildirim
Public Enumeration DTSPackageType
'Kullanım
Dim instance As DTSPackageType
public enum DTSPackageType
public enum class DTSPackageType
type DTSPackageType
public enum DTSPackageType
Üyeler
Üye adı | Açıklama | |
---|---|---|
Default | Tanımsız. | |
DTSWizard | Paket sql Server alma ve Verme Sihirbazı tarafından oluşturulmuş belirtir. | |
DTSDesigner | paket Tasarımcısı'nda oluşturulduğunu belirten SQL Server 2000. | |
SQLReplication | Paket transformable abonelikleri desteklemek için oluşturulan belirtir. | |
DTSDesigner100 | paket içinde oluşturulduğunu belirten SSIS Tasarımcı, SQL Server 2008 Integration Services (SSIS). | |
SQLDBMaint | DBMaint istemci paket oluşturulması gerektiğini belirtir. |
Örnekler
Aşağıdaki kod örneği, tümleştirme hizmetleri paketi örnekleri birini yükler ve bu numaralandırma değerleri biri olan paket türünü görüntüler.
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
Örnek Çıktı:
Paket gösterir: DTSDesigner100