Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Returns a String containing the Transact-SQL statement that can be used to execute the referenced backup.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)
Syntaxe
'Déclaration
Public Function Script ( _
targetServer As Server _
) As String
'Utilisation
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
Paramètres
- targetServer
Type : Microsoft.SqlServer.Management.Smo.Server
The Server object that represents the Microsoft SQL Server instance that is the source of the backup operation.
Valeur de retour
Type : System.String
A String containing theTransact-SQL statement that can be used to execute the referenced backup.
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo
Autres ressources
Sauvegarde et restauration des bases de données et journaux de transactions