Script 메서드 (ScriptingOptions)
지정한 스크립팅 옵션을 사용하여 데이터베이스 개체를 다시 만드는 데 사용할 수 있는 Transact-SQL 스크립트를 생성합니다.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Function Script ( _
scriptingOptions As ScriptingOptions _
) As StringCollection
‘사용 방법
Dim instance As TableViewTableTypeBase
Dim scriptingOptions As ScriptingOptions
Dim returnValue As StringCollection
returnValue = instance.Script(scriptingOptions)
public StringCollection Script(
ScriptingOptions scriptingOptions
)
public:
virtual StringCollection^ Script(
ScriptingOptions^ scriptingOptions
) sealed
abstract Script :
scriptingOptions:ScriptingOptions -> StringCollection
override Script :
scriptingOptions:ScriptingOptions -> StringCollection
public final function Script(
scriptingOptions : ScriptingOptions
) : StringCollection
매개 변수
- scriptingOptions
유형: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
스크립팅 옵션을 지정하는 ScriptingOptions 개체입니다.
구현
주의
This method generates an exception if the scriptingOptions are set so that the entire dataset is scripted.