다음을 통해 공유


Validate 메서드

Validates the package with the specified connection and determines whether the specified server is valid.

네임스페이스:  Microsoft.SqlServer.Management.Dac
어셈블리:  Microsoft.SqlServer.Management.Dac(Microsoft.SqlServer.Management.Dac.dll)

구문

‘선언
Public Shared Function Validate ( _
    server As Server, _
    databaseName As String _
) As ExtractValidationException
‘사용 방법
Dim server As Server
Dim databaseName As String
Dim returnValue As ExtractValidationException

returnValue = DatabaseExtractValidator.Validate(server, _
    databaseName)
public static ExtractValidationException Validate(
    Server server,
    string databaseName
)
public:
static ExtractValidationException^ Validate(
    Server^ server, 
    String^ databaseName
)
static member Validate : 
        server:Server * 
        databaseName:string -> ExtractValidationException 
public static function Validate(
    server : Server, 
    databaseName : String
) : ExtractValidationException

매개 변수

반환 값

유형: Microsoft.SqlServer.Management.Dac. . :: . .ExtractValidationException
A ExtractValidationException that specifies which problems were detected. Returns nullNothingnullptrunitnull 참조(Visual Basic에서는 Nothing) if no problems were detected.

주의

The Validate method checks to ensure that:

  • The server is not in Design Mode.

  • The database exists, and that information can be extracted from it.

  • The user has sufficient privileges to extract information from the database.