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 > Deleting Extra log file
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ms.sqlserver.setup Questions about SQL Server.

Deleting Extra log file

Réponse
 
LinkBack Outils de la discussion
Vieux 05/10/2007, 13h44   #1
Zorpiedoman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Deleting Extra log file

A couple of years ago, we got in a panic where a transaction log had filled
up the hard drive. In order to get the server back up immediately (no time
for backup/shrink) we simply added an additional transaction log onto another
drive, then took care of the situation correctly.

I am DYING to get rid of this extra log file, but there seems to be no way
to do so. I can't delete it because it is not empty, yet I find no way to
tell SQL server to stop using it so I can clean it out and remove it.

Is this possible in any way, or am I stuck with this extra log file forever???
--
--Zorpie
  Réponse avec citation
Vieux 05/10/2007, 15h32   #2
Andrew J. Kelly
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deleting Extra log file

Have a look at ALTER DATABASE and the EMPTY FILE option.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Zorpiedoman" <nowheremane@beatles.com> wrote in message
news:737180FE-AFC8-42CD-B59F-3522EBE326C2@microsoft.com...
>A couple of years ago, we got in a panic where a transaction log had filled
> up the hard drive. In order to get the server back up immediately (no
> time
> for backup/shrink) we simply added an additional transaction log onto
> another
> drive, then took care of the situation correctly.
>
> I am DYING to get rid of this extra log file, but there seems to be no way
> to do so. I can't delete it because it is not empty, yet I find no way to
> tell SQL server to stop using it so I can clean it out and remove it.
>
> Is this possible in any way, or am I stuck with this extra log file
> forever???
> --
> --Zorpie


  Réponse avec citation
Vieux 05/10/2007, 16h53   #3
Ekrem Önsoy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deleting Extra log file

I believe Andrew would say DBCC SHRINKFILE's EMPTYFILE.

You may have more info about this command from the following link:
http://msdn2.microsoft.com/en-us/library/ms189493.aspx

--
Ekrem Önsoy


"Zorpiedoman" <nowheremane@beatles.com> wrote in message
news:737180FE-AFC8-42CD-B59F-3522EBE326C2@microsoft.com...
>A couple of years ago, we got in a panic where a transaction log had filled
> up the hard drive. In order to get the server back up immediately (no
> time
> for backup/shrink) we simply added an additional transaction log onto
> another
> drive, then took care of the situation correctly.
>
> I am DYING to get rid of this extra log file, but there seems to be no way
> to do so. I can't delete it because it is not empty, yet I find no way to
> tell SQL server to stop using it so I can clean it out and remove it.
>
> Is this possible in any way, or am I stuck with this extra log file
> forever???
> --
> --Zorpie


  Réponse avec citation
Vieux 05/10/2007, 18h43   #4
Andrew J. Kelly
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deleting Extra log file

Thanks for correcting me Ekrem. You are correct, my head was in the clouds.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Ekrem Önsoy" <ekrem@btegitim.com> wrote in message
news:5C9501C7-BE21-404A-AF5F-00B19E5EB09A@microsoft.com...
>I believe Andrew would say DBCC SHRINKFILE's EMPTYFILE.
>
> You may have more info about this command from the following link:
> http://msdn2.microsoft.com/en-us/library/ms189493.aspx
>
> --
> Ekrem Önsoy
>
>
> "Zorpiedoman" <nowheremane@beatles.com> wrote in message
> news:737180FE-AFC8-42CD-B59F-3522EBE326C2@microsoft.com...
>>A couple of years ago, we got in a panic where a transaction log had
>>filled
>> up the hard drive. In order to get the server back up immediately (no
>> time
>> for backup/shrink) we simply added an additional transaction log onto
>> another
>> drive, then took care of the situation correctly.
>>
>> I am DYING to get rid of this extra log file, but there seems to be no
>> way
>> to do so. I can't delete it because it is not empty, yet I find no way
>> to
>> tell SQL server to stop using it so I can clean it out and remove it.
>>
>> Is this possible in any way, or am I stuck with this extra log file
>> forever???
>> --
>> --Zorpie

>


  Réponse avec citation
Vieux 05/10/2007, 19h06   #5
Ekrem Önsoy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Deleting Extra log file

It happens sometimes mate...

--
Ekrem Önsoy


"Andrew J. Kelly" <sqlmvpnooospam@shadhawk.com> wrote in message
news:Ox1H9c3BIHA.5980@TK2MSFTNGP04.phx.gbl...
> Thanks for correcting me Ekrem. You are correct, my head was in the
> clouds.
>
> --
> Andrew J. Kelly SQL MVP
> Solid Quality Mentors
>
>
> "Ekrem Önsoy" <ekrem@btegitim.com> wrote in message
> news:5C9501C7-BE21-404A-AF5F-00B19E5EB09A@microsoft.com...
>>I believe Andrew would say DBCC SHRINKFILE's EMPTYFILE.
>>
>> You may have more info about this command from the following link:
>> http://msdn2.microsoft.com/en-us/library/ms189493.aspx
>>
>> --
>> Ekrem Önsoy
>>
>>
>> "Zorpiedoman" <nowheremane@beatles.com> wrote in message
>> news:737180FE-AFC8-42CD-B59F-3522EBE326C2@microsoft.com...
>>>A couple of years ago, we got in a panic where a transaction log had
>>>filled
>>> up the hard drive. In order to get the server back up immediately (no
>>> time
>>> for backup/shrink) we simply added an additional transaction log onto
>>> another
>>> drive, then took care of the situation correctly.
>>>
>>> I am DYING to get rid of this extra log file, but there seems to be no
>>> way
>>> to do so. I can't delete it because it is not empty, yet I find no way
>>> to
>>> tell SQL server to stop using it so I can clean it out and remove it.
>>>
>>> Is this possible in any way, or am I stuck with this extra log file
>>> forever???
>>> --
>>> --Zorpie

>>

>


  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 07h22.


É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,16338 seconds with 13 queries