TSqlModel.LoadFromDatabase 메서드

정의

오버로드

Name Description
LoadFromDatabase(String, ModelExtractOptions, Nullable<CancellationToken>)

지정된 을 사용하여 데이터베이스에서 모델을 로드합니다 options.

LoadFromDatabase(String, SecureString, ModelExtractOptions, Nullable<CancellationToken>)

지정된 을 사용하여 데이터베이스에서 모델을 로드합니다 options.

LoadFromDatabase(String, ModelExtractOptions, Nullable<CancellationToken>)

지정된 을 사용하여 데이터베이스에서 모델을 로드합니다 options.

public static Microsoft.SqlServer.Dac.Model.TSqlModel LoadFromDatabase(string connectionString, Microsoft.SqlServer.Dac.Model.ModelExtractOptions options = default, System.Threading.CancellationToken? cancellationToken = default);
static member LoadFromDatabase : string * Microsoft.SqlServer.Dac.Model.ModelExtractOptions * Nullable<System.Threading.CancellationToken> -> Microsoft.SqlServer.Dac.Model.TSqlModel
Public Shared Function LoadFromDatabase (connectionString As String, Optional options As ModelExtractOptions = Nothing, Optional cancellationToken As Nullable(Of CancellationToken) = Nothing) As TSqlModel

매개 변수

connectionString
String

로드할 데이터베이스 및 카탈로그를 지정하는 연결 문자열.

options
ModelExtractOptions

패키지 추출의 동작에 영향을 주는 옵션을 지정하는 데 사용되는 선택적 ModelExtractOptions 인스턴스입니다. 정적 코드 분석에서 모델을 분석하려면 true로 설정하는 것이 LoadAsScriptBackedModel 좋습니다. 이는 사실이 아닌 한 일부 규칙이 예상대로 작동하지 않을 수 있으므로 중요합니다.

cancellationToken
Nullable<CancellationToken>

로드 작업을 취소하는 데 사용되는 선택적 취소 토큰입니다.

반품

예외

connectionString이 null인 경우

connectionString이 유효한 연결 문자열 또는 옵션이 아닌 경우 스토리지는 열거형 형식의 유효한 값이 아닙니다.

지정된 데이터베이스에서 모델을 추출하는 데 문제가 있는 경우

적용 대상

LoadFromDatabase(String, SecureString, ModelExtractOptions, Nullable<CancellationToken>)

지정된 을 사용하여 데이터베이스에서 모델을 로드합니다 options.

public static Microsoft.SqlServer.Dac.Model.TSqlModel LoadFromDatabase(string connectionString, System.Security.SecureString password, Microsoft.SqlServer.Dac.Model.ModelExtractOptions options = default, System.Threading.CancellationToken? cancellationToken = default);
static member LoadFromDatabase : string * System.Security.SecureString * Microsoft.SqlServer.Dac.Model.ModelExtractOptions * Nullable<System.Threading.CancellationToken> -> Microsoft.SqlServer.Dac.Model.TSqlModel
Public Shared Function LoadFromDatabase (connectionString As String, password As SecureString, Optional options As ModelExtractOptions = Nothing, Optional cancellationToken As Nullable(Of CancellationToken) = Nothing) As TSqlModel

매개 변수

connectionString
String

로드할 데이터베이스 및 카탈로그를 지정하는 연결 문자열.

password
SecureString

지정된 데이터베이스에 연결할 때 사용되는 암호 문자열입니다.

options
ModelExtractOptions

패키지 추출의 동작에 영향을 주는 옵션을 지정하는 데 사용되는 선택적 ModelExtractOptions 인스턴스입니다. 정적 코드 분석에서 모델을 분석하려면 true로 설정하는 것이 LoadAsScriptBackedModel 좋습니다. 이는 사실이 아닌 한 일부 규칙이 예상대로 작동하지 않을 수 있으므로 중요합니다.

cancellationToken
Nullable<CancellationToken>

로드 작업을 취소하는 데 사용되는 선택적 취소 토큰입니다.

반품

예외

connectionString이 null인 경우

connectionString이 유효한 연결 문자열 또는 옵션이 아닌 경우 스토리지는 열거형 형식의 유효한 값이 아닙니다.

지정된 데이터베이스에서 모델을 추출하는 데 문제가 있는 경우

적용 대상