Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simplest way to copy whole database
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01301462
Message ID:
01301742
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I have a database on the test server. I also used to have a database on the local PC, but not anymore (though I found some MDB file).
>
>My question is - what would be the simplest way to copy the database from the test server to the local PC and how would I adjust the connection string to use it locally?
>
>Thanks a lot in advance.


Naomi,

Please find example script below:
BACKUP DATABASE MyDatabaseName 
TO DISK = 'c:\Backups'
WITH  DESCRIPTION = 'This is a backup description', 
NOFORMAT, INIT,  NAME = 'BackupName.bak', SKIP, NOREWIND, NOUNLOAD,  STATS = 10
This should work on SQL2000-SQL2005 all versions.


Regards,

Zoran
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform