Метод Backup.Script
Returns a String containing the Transact-SQL statement that can be used to execute the referenced backup.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.SmoExtended (в Microsoft.SqlServer.SmoExtended.dll)
Синтаксис
'Декларация
Public Function Script ( _
targetServer As Server _
) As String
'Применение
Dim instance As Backup
Dim targetServer As Server
Dim returnValue As String
returnValue = instance.Script(targetServer)
public string Script(
Server targetServer
)
public:
String^ Script(
Server^ targetServer
)
member Script :
targetServer:Server -> string
public function Script(
targetServer : Server
) : String
Параметры
- targetServer
Тип: Microsoft.SqlServer.Management.Smo.Server
The Server object that represents the Microsoft SQL Server instance that is the source of the backup operation.
Возвращаемое значение
Тип: System.String
A String containing theTransact-SQL statement that can be used to execute the referenced backup.
См. также
Справочник
Пространство имен Microsoft.SqlServer.Management.Smo
Другие ресурсы
Резервное копирование и восстановление баз данных и журналов транзакций из копий