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 > Restoring a number of logs (SQL2K)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Restoring a number of logs (SQL2K)

Réponse
 
LinkBack Outils de la discussion
Vieux 03/09/2008, 15h00   #1
Joachim Hofmann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Restoring a number of logs (SQL2K)

Hello,

When I have to restore a number of Logs, I have to change the FILE number in the RESTORE command
manually.
Is there a way to automatically restore *all* log files?

Thank You

Joachim
  Réponse avec citation
Vieux 03/09/2008, 15h24   #2
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Restoring a number of logs (SQL2K)

Did you see our replies to your earlier post with that same question?

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


"Joachim Hofmann" <speicher@freenet.de> wrote in message
news:%23tuX9TcDJHA.2060@TK2MSFTNGP05.phx.gbl...
> Hello,
>
> When I have to restore a number of Logs, I have to change the FILE number in the RESTORE command
> manually.
> Is there a way to automatically restore *all* log files?
>
> Thank You
>
> Joachim



  Réponse avec citation
Vieux 03/09/2008, 18h22   #3
Joachim Hofmann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Restoring a number of logs (SQL2K)

Tibor Karaszi wrote:
> Did you see our replies to your earlier post with that same question?
>

I searched for older posts, but I only found topics like "truncating log".

Please give me a hint.

Joachim
  Réponse avec citation
Vieux 03/09/2008, 18h25   #4
Joachim Hofmann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Restoring a number of logs (SQL2K)

Tibor Karaszi wrote:
> Did you see our replies to your earlier post with that same question?
>


Ah, now I understand: No, for unknown reason I dont see my earlier post, so I posted twice.

Joachim
  Réponse avec citation
Vieux 03/09/2008, 21h13   #5
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Restoring a number of logs (SQL2K)

Here's my reply to your earlier post:


Nope. Sorry.

Either do the restore using EM/SSMS GUI based on backup history. This assumes that you restore on
the same instance as where the backups were taken.

Or write some TSQL code to push result from RESTORE HEADERONLY into some table and have a cursor
loop that table and do the restore from inside that cursor. There's nothing ready-made for this at
the TSQL level I'm afraid...




And here's Kalen's additions:

In addition to Tibor's excellent advise, make sure that only the last
restore includes WITH RECOVERY and all the others are WITH NORECOVERY. The
GUI would do this automatically for you.



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


"Joachim Hofmann" <speicher@freenet.de> wrote in message
news:uNR8uGeDJHA.5316@TK2MSFTNGP04.phx.gbl...
> Tibor Karaszi wrote:
>> Did you see our replies to your earlier post with that same question?
>>

>
> Ah, now I understand: No, for unknown reason I dont see my earlier post, so I posted twice.
>
> Joachim


  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 08h55.


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