PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > export db tables for use locally on another pc
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
export db tables for use locally on another pc

Réponse
 
LinkBack Outils de la discussion
Vieux 14/12/2007, 16h44   #1
ll
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut export db tables for use locally on another pc

Hi,
I've used SQL Enterprise Manager to Export my selected db's locally.
My main question is how do I move the export to another pc - which
files need to be moved, etc?

Thanks
Louis
  Réponse avec citation
Vieux 14/12/2007, 19h05   #2
Plamen Ratchev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: export db tables for use locally on another pc

Hi Louis,

How did you exactly export you databases?

Normally the easiest way to move databases is to backup, move the backup
file to the new PC, and then restore.

You could also use detach, copy the MDF and LDF files, then attach on the
new PC (but you have to attach back to the original PC too, if you need the
databases there). Not worth the trouble unless you do not have space to save
a backup file.

Alternatively you can script your database objects and export the data, then
apply the scripts to the new PC and import the data. This is manual approach
that is not needed unless you want to change structure for some objects
during the transfer, filter data, etc.

HTH,

Plamen Ratchev
http://www.SQLStudio.com

  Réponse avec citation
Vieux 14/12/2007, 20h07   #3
ll
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: export db tables for use locally on another pc

On Dec 14, 1:05 pm, "Plamen Ratchev" <Pla...@SQLStudio.com> wrote:
> Hi Louis,
>
> How did you exactly export you databases?
>
> Normally the easiest way to move databases is to backup, move the backup
> file to the new PC, and then restore.
>
> You could also use detach, copy the MDF and LDF files, then attach on the
> new PC (but you have to attach back to the original PC too, if you need the
> databases there). Not worth the trouble unless you do not have space to save
> a backup file.
>
> Alternatively you can script your database objects and export the data, then
> apply the scripts to the new PC and import the data. This is manual approach
> that is not needed unless you want to change structure for some objects
> during the transfer, filter data, etc.
>
> HTH,
>
> Plamen Ratchevhttp://www.SQLStudio.com



Hi Plamen,

Thanks for your reply.

I created a new local db and imported the tables from the live
database, selecting "copy objects and data between SQL Server
databases", then left "copy all objects" and "use default options"
selected on the next step, then I selected "run immediately" but
didn't save the DTS package.
Do I need to take the live db offline in order to do this (I get a
failure message halfway through the import process).

Thanks,
Louis
  Réponse avec citation
Vieux 14/12/2007, 20h18   #4
ll
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: export db tables for use locally on another pc

On Dec 14, 1:05 pm, "Plamen Ratchev" <Pla...@SQLStudio.com> wrote:
> Hi Louis,
>
> How did you exactly export you databases?
>
> Normally the easiest way to move databases is to backup, move the backup
> file to the new PC, and then restore.
>
> You could also use detach, copy the MDF and LDF files, then attach on the
> new PC (but you have to attach back to the original PC too, if you need the
> databases there). Not worth the trouble unless you do not have space to save
> a backup file.
>
> Alternatively you can script your database objects and export the data, then
> apply the scripts to the new PC and import the data. This is manual approach
> that is not needed unless you want to change structure for some objects
> during the transfer, filter data, etc.
>
> HTH,
>
> Plamen Ratchevhttp://www.SQLStudio.com


Hi Plamen,
Thanks for your email.
I've created a new local db and imported the tables from the live db.
This will fail when I choose to 'copy objects and data between SQL
Server databases' and then leave 'copy all objects' and 'use default
objects' and 'run immediately' in the next step, leaving 'save DTS'
unchecked. Would I need to take the live db offline before copying?
Thanks
Louis

  Réponse avec citation
Vieux 14/12/2007, 21h19   #5
Plamen Ratchev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: export db tables for use locally on another pc

You could get different errors when using the Import/Export wizard to copy a
database. No, you do not need to have the live database off-line while doing
that.

Instead of using this method I would suggest to use backup and then restore
the backup file. It is easier and a lot more reliable.

Here is a good article that outlines the different approaches to move data
between SQL Server instances:
http://support.microsoft.com/kb/314546

See also the sections in the article that refer to transferring logins and
resolving orphaned users.

HTH,

Plamen Ratchev
http://www.SQLStudio.com

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h15.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12583 seconds with 13 queries