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 > Move C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data to D Drive
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ms.sqlserver.setup Questions about SQL Server.

Move C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data to D Drive

Réponse
 
LinkBack Outils de la discussion
Vieux 11/10/2007, 13h22   #1
Alex
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Move C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data to D Drive

Hi

Can you me, I wish to achieve the following all on a single
server running SQL server 2005:

* Move everything under C:\Program Files\Microsoft SQL Server\MSSQL.
1\MSSQL\Data to D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL
\Data (which will be a new folder).

* Make sure all new databases get placed in D:\Program Files\Microsoft
SQL Server\MSSQL.1\MSSQL\Data by default.

I realise I could use detact/attach every single database, but is
there a way to move the whole folder? I've looked for white papers/
technet articles but didn't have much joy....

Many thanks for your in advance....

  Réponse avec citation
Vieux 11/10/2007, 13h44   #2
Ekrem Önsoy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Move C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data to D Drive

You could stop your SQL Server service and move your all mdf and ndf and ldf
files to the new location, but then, records of those database would be left
in your system databases as they would not be moved formally.

I suggest you to use attach and detach to move your databases. So, when you
detach them, records of those databases would be cleared from your system
databases and there would not be junk records in your database system.

Besides, if you want to change your default database location then connect
to your SQL Serverinstance and go to its properties and then go to Database
Settings. There, you'll see Database default locations settings at the below
of the Server Properties window.

--
Ekrem Önsoy


"Alex" <postings@alexshirley.com> wrote in message
news:1192105361.573704.100610@k79g2000hse.googlegr oups.com...
> Hi
>
> Can you me, I wish to achieve the following all on a single
> server running SQL server 2005:
>
> * Move everything under C:\Program Files\Microsoft SQL Server\MSSQL.
> 1\MSSQL\Data to D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL
> \Data (which will be a new folder).
>
> * Make sure all new databases get placed in D:\Program Files\Microsoft
> SQL Server\MSSQL.1\MSSQL\Data by default.
>
> I realise I could use detact/attach every single database, but is
> there a way to move the whole folder? I've looked for white papers/
> technet articles but didn't have much joy....
>
> Many thanks for your in advance....
>


  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 23h50.


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