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 > ms.sqlserver.setup > Copying database using smo code
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ms.sqlserver.setup Questions about SQL Server.

Copying database using smo code

Réponse
 
LinkBack Outils de la discussion
Vieux 19/10/2006, 05h42   #1
Guru
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Copying database using smo code

Hi,

Is it possible to automate copying of a SQL 2000 database into 2005
database? I want this to be done thru code and not by using the copy
wizard.

I want to accomplish this using SQL SMO. SMO provides APIs for backup
and restore but I was unable to find anything on copy database.

Any interms of code snippets or links would be very much
appreciated.

Thanks,
Guru

  Réponse avec citation
Vieux 19/10/2006, 09h19   #2
Dejan Sarka
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Copying database using smo code

Copy wizard detaches database, copies files and attaches them back to the
new (and old) server. I do not know how exactly to do this with SMO, but I
hope you have a starting point for searching.

--
Dejan Sarka
http://www.solidqualitylearning.com/blogs/

"Guru" <gurunv@gmail.com> wrote in message
news:1161232959.216186.221450@m7g2000cwm.googlegro ups.com...
> Hi,
>
> Is it possible to automate copying of a SQL 2000 database into 2005
> database? I want this to be done thru code and not by using the copy
> wizard.
>
> I want to accomplish this using SQL SMO. SMO provides APIs for backup
> and restore but I was unable to find anything on copy database.
>
> Any interms of code snippets or links would be very much
> appreciated.
>
> Thanks,
> Guru
>



  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 01h38.


É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,11017 seconds with 10 queries