Restore.Script Method
SQL Server 2008
Generates a Transact-SQL script that can be used to re-create the restore operation.
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Parameters
- server
- Type: Microsoft.SqlServer.Management.Smo.Server
A Server object that represents the instance of SQL Server that is targeted by the restore operation.
Return Value
Type: System.Collections.Specialized.StringCollectionA StringCollection system object value that contains a list of Transact-SQL statements in the script.
