Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple VFP program to backup SQL Server database
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00857511
Message ID:
00857678
Vues:
33
>You could try something like this:
>
>LOCAL loServer, loBackup
>
>loServer   = CREATEOBJECT('SQLDMO.SqlServer')
>loServer.Connect("MyServerName","MyUserName", "My password")
>
>loBackup = CREATEOBJECT('SQLDMO.Backup')
>WITH loBackup
>	.Database   		= "MyDatabaseName"
>	.Files      		= '[C:\Backups\BackupFileName]'
>	.Initialize 		=  .T.
>	.BackupSetName 		= "My Backup"
>	.BackupSetDescription = "Mt description"
>	.SQLBackup(loServer)
>ENDWITH
>
Thank you very much Zoran! Short and sweet.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform