Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sqlserver backup to client maching
Message
De
03/11/2016 08:17:12
 
 
À
03/11/2016 03:14:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01642645
Message ID:
01642660
Vues:
37
You cannot perform a backup of the database on the server and have the destination be the local workstation.

>Dear Experts
>
>I am using SQLSERVER 2008 R2.
>
>Want to send backup from server to client
>For this I am trying this code
>
>
>filename='accounts'
>mdest2='\\Sales\d'
>target1=ALLTRIM(mdest2)+ALLTRIM("\")+ALLTRIM(filename)+ALLTRIM(".bak")
>
>MESSAGEBOX("Backup path is"+CHR(13)+target1,0+64,"SQLSERVER")
>nresult=SQLEXEC(m.con,"backup database &filename to disk='target1'")
>
>IF nresult<0
>	MESSAGEBOX('Backup Faild-1',0+64,'Backup')
>	RETURN
>ELSE
>	MESSAGEBOX("Done")
>ENDI
>
>
>
>but it says:
>Backup Faild-1
>
>Please help
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform