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.server > Rename Transaction Log - SQL 2000
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Rename Transaction Log - SQL 2000

Réponse
 
LinkBack Outils de la discussion
Vieux 15/05/2008, 17h24   #1
Balldigy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Rename Transaction Log - SQL 2000

Hi All,

I would like to be able to change the physical name of the transaction
log in my SQL 2000 database. For instance, I would like to be able to
change D:\Program Files\Microsoft SQL Server\MSSQL\Data\filename1.ldf
TO D:\Program Files\Microsoft SQL Server\MSSQL\Data\filename2.ldf . Is
that possible and will there be any problems with me doing that?
Thanks.
  Réponse avec citation
Vieux 15/05/2008, 17h30   #2
Aaron Bertrand [SQL Server MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Rename Transaction Log - SQL 2000

Did you look in Books Online? That's where I look for the syntax of how to
do something, if I don't know it off the top of my head.

ALTER DATABASE database_name
MODIFY FILE
(
NAME = log_file_name,
FILENAME = 'D:\Program Files\Microsoft SQL
Server\MSSQL\Data\filename2.ldf'
);

You will need to cycle SQL Server before the move is complete.

I am not sure what you would gain out of this specific move, however.



"Balldigy" <balldigy@gmail.com> wrote in message
news:583608eb-b981-4658-b1ef-ceda07f21174@u12g2000prd.googlegroups.com...
> Hi All,
>
> I would like to be able to change the physical name of the transaction
> log in my SQL 2000 database. For instance, I would like to be able to
> change D:\Program Files\Microsoft SQL Server\MSSQL\Data\filename1.ldf
> TO D:\Program Files\Microsoft SQL Server\MSSQL\Data\filename2.ldf . Is
> that possible and will there be any problems with me doing that?
> Thanks.



  Réponse avec citation
Vieux 16/05/2008, 08h03   #3
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Rename Transaction Log - SQL 2000

Just for the same of completeness, one have to actually move the physical file as well, as outlined
in:
ms-://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/ad9a4e92-13fb-457d-996a-66ffc2d55b79.htm

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:OYnTXlqtIHA.3968@TK2MSFTNGP04.phx.gbl...
> Did you look in Books Online? That's where I look for the syntax of how to do something, if I
> don't know it off the top of my head.
>
> ALTER DATABASE database_name
> MODIFY FILE
> (
> NAME = log_file_name,
> FILENAME = 'D:\Program Files\Microsoft SQL Server\MSSQL\Data\filename2.ldf'
> );
>
> You will need to cycle SQL Server before the move is complete.
>
> I am not sure what you would gain out of this specific move, however.
>
>
>
> "Balldigy" <balldigy@gmail.com> wrote in message
> news:583608eb-b981-4658-b1ef-ceda07f21174@u12g2000prd.googlegroups.com...
>> Hi All,
>>
>> I would like to be able to change the physical name of the transaction
>> log in my SQL 2000 database. For instance, I would like to be able to
>> change D:\Program Files\Microsoft SQL Server\MSSQL\Data\filename1.ldf
>> TO D:\Program Files\Microsoft SQL Server\MSSQL\Data\filename2.ldf . Is
>> that possible and will there be any problems with me doing that?
>> Thanks.

>
>



  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 13h13.


É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,09126 seconds with 11 queries