Restore.Script 메서드

Generates a Transact-SQL script that can be used to re-create the restore operation.

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

구문

‘선언
Public Function Script ( _
    server As Server _
) As StringCollection
‘사용 방법
Dim instance As Restore 
Dim server As Server 
Dim returnValue As StringCollection 

returnValue = instance.Script(server)
public StringCollection Script(
    Server server
)
public:
StringCollection^ Script(
    Server^ server
)
member Script : 
        server:Server -> StringCollection
public function Script(
    server : Server
) : StringCollection

매개 변수

반환 값

유형: System.Collections.Specialized.StringCollection
A StringCollection system object value that contains a list of Transact-SQL statements in the script.

주의

생성된 스크립트에는 문서화되지 않았으나 전체 스크립트 결과에 필요한 내부 프로시저가 포함될 수 있습니다.

데이터베이스 및 트랜잭션 로그 백업 및 복원

참고 항목

참조

Restore 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

RESTORE(Transact-SQL)

SQL Server 데이터베이스 백업 및 복원