DtsContainer.DelayValidation 속성

정의

작업의 유효성 검사가 런타임까지 지연되는지 여부를 나타내는 부울을 가져오거나 설정합니다. 기본값은 false입니다.

public:
 property bool DelayValidation { bool get(); void set(bool value); };
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyCategory(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "PropertyCategoryExecution")]
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "DelayValidationDesc")]
public bool DelayValidation { get; set; }
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyCategory(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "PropertyCategoryExecution")>]
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "DelayValidationDesc")>]
member this.DelayValidation : bool with get, set
Public Property DelayValidation As Boolean

속성 값

패키지의 유효성 검사가 런타임까지 지연되면 true입니다. 패키지의 유효성을 검사하고 패키지가 실제로 실행되기 전에 오류 및 경고가 반환되면 false입니다. 이 값이 false인 경우 오류나 경고의 발생 횟수가 MaximumErrorCount 속성의 값을 초과하면 패키지가 실행되지 않을 수 있습니다

특성

예제

클래스는 Package .의 EventsProvider상속을 DtsContainer 통해 구현합니다. 다음 코드 예제에서는 패키지를 만든 다음 상속된 DtsContainer값을 표시하고 설정합니다.

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)  
        {  
            // The package is the ExecuteProcess package sample   
            // that is installed with the SSIS samples.  
            string pkg = @"C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\ExecuteProcess Sample\ExecuteProcess\UsingExecuteProcess.dtsx";  

            Application app = new Application();  
            Package p1 = app.LoadPackage(pkg, null);  

            // Show the properties inherited from DtsContainer.  
            Console.WriteLine("CreationName:    {0}", p1.CreationName);  
            Console.WriteLine("DebugMode:       {0}", p1.DebugMode);  
            Console.WriteLine("DelayValidation: {0}", p1.DelayValidation);  
            Console.WriteLine("Description:     {0}", p1.Description);  
            Console.WriteLine("Disable:         {0}", p1.Disable);  

            // Description is not set for this sample, so set it.  
            p1.Description = "This is the Execute Process Package Sample";  
            Console.WriteLine("Description after modification: {0}", p1.Description);  

            Console.WriteLine();  
        }  
    }  
}  
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)  
            ' The package is the ExecuteProcess package sample   
            ' that is installed with the SSIS samples.  
            Dim pkg As String =  "C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\ExecuteProcess Sample\ExecuteProcess\UsingExecuteProcess.dtsx"   

            Dim app As Application =  New Application()   
            Dim p1 As Package =  app.LoadPackage(pkg,Nothing)   

            ' Show the properties inherited from DtsContainer.  
            Console.WriteLine("CreationName:    {0}", p1.CreationName)  
            Console.WriteLine("DebugMode:       {0}", p1.DebugMode)  
            Console.WriteLine("DelayValidation: {0}", p1.DelayValidation)  
            Console.WriteLine("Description:     {0}", p1.Description)  
            Console.WriteLine("Disable:         {0}", p1.Disable)  

            ' Description is not set for this sample, so set it.  
            p1.Description = "This is the Execute Process Package Sample"  
            Console.WriteLine("Description after modification: {0}", p1.Description)  

            Console.WriteLine()  
        End Sub  
    End Class  
End Namespace  

샘플 출력:

CreationName: MSDTS. Package.1

DebugMode: False

DelayValidation: True

설명:

사용 안 함: False

수정 후 설명: 프로세스 패키지 실행 샘플입니다.

설명

실행하기 전에 패키지의 유효성을 검사하는 것은 실행이 시작되기 전에 몇 가지 오류를 찾는 방법입니다. 그러나 오류를 찾기 위해 패키지를 처리하고 오류가 없으면 패키지가 실행됩니다. 패키지를 두 번 통과하므로 패키지의 유효성을 검사하면 패키지에 대한 처리량이 증가하므로 필요한 경우에만 사용해야 합니다.

적용 대상