Click here to Skip to main content
15,899,475 members
Home / Discussions / Database
   

Database

 
GeneralRe: need query for date....................... Pin
Member 38798816-Jul-07 18:28
Member 38798816-Jul-07 18:28 
Questionplz give answer Pin
help as an alias5-Jul-07 23:25
help as an alias5-Jul-07 23:25 
AnswerRe: plz give answer Pin
rah_sin5-Jul-07 23:30
professionalrah_sin5-Jul-07 23:30 
GeneralRe: plz give answer Pin
help as an alias6-Jul-07 0:05
help as an alias6-Jul-07 0:05 
GeneralRe: plz give answer Pin
rah_sin6-Jul-07 0:22
professionalrah_sin6-Jul-07 0:22 
AnswerThe rules Pin
leckey6-Jul-07 3:12
leckey6-Jul-07 3:12 
QuestionHow can i recover my database using LDF file .... Pin
koolprasad20035-Jul-07 23:08
professionalkoolprasad20035-Jul-07 23:08 
AnswerRe: How can i recover my database using LDF file .... Pin
Mike Dimmick6-Jul-07 3:09
Mike Dimmick6-Jul-07 3:09 
So, the .MDF file is damaged or missing, but you still have the .LDF? As long as your database was using the Full recovery model, and you have any log backups you've made since the full backup, you can get it back.

Step one - back up the transaction log in SQL Server. Be sure to set the NOTRUNCATE option so that the committed transactions are not removed. Then restore the full backup with the NORECOVERY option. Now restore each previous log backup again with the NORECOVERY option. Finally restore the log backup you just made, this time allowing SQL Server to perform recovery.

The database should now be in a consistent state, and should contain the result of all transactions that had been committed up to the point of failure.

It's worth testing this out on another database, on another server, before you start trying to recover the one you're having a problem with, to ensure you don't make any mistakes. Also consider stopping SQL Server and making a file-level backup of the affected files.

If you're using the bulk-logged recovery model, the log backup operation will need access to any pages in the data file that were changed by any bulk operation. If these pages are unreadable or damaged, the log backup will fail and you won't be able to recover the database to the point of failure. If you're using the Simple recovery model, the transaction log only contains the most recent transactions, it does not represent a complete history. Therefore it cannot be used to recover to point of failure.

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: How can i recover my database using LDF file .... Pin
koolprasad20036-Jul-07 19:21
professionalkoolprasad20036-Jul-07 19:21 
GeneralRe: How can i recover my database using LDF file .... Pin
Mike Dimmick7-Jul-07 2:17
Mike Dimmick7-Jul-07 2:17 
QuestionFreeText Search IN SQL SERVER 2005 Pin
adnanrafiq5-Jul-07 21:33
adnanrafiq5-Jul-07 21:33 
AnswerRe: FreeText Search IN SQL SERVER 2005 Pin
originSH5-Jul-07 22:02
originSH5-Jul-07 22:02 
GeneralRe: FreeText Search IN SQL SERVER 2005 Pin
adnanrafiq5-Jul-07 23:33
adnanrafiq5-Jul-07 23:33 
Questionhow to write switch case scenario in sp Pin
mohd imran abdul aziz5-Jul-07 20:29
mohd imran abdul aziz5-Jul-07 20:29 
AnswerRe: how to write switch case scenario in sp Pin
originSH5-Jul-07 22:03
originSH5-Jul-07 22:03 
AnswerRe: how to write switch case scenario in sp Pin
kubben6-Jul-07 2:09
kubben6-Jul-07 2:09 
QuestionCalculating the space occupied by each row in a table Pin
vijay25835-Jul-07 20:14
vijay25835-Jul-07 20:14 
AnswerRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav6-Jul-07 11:13
Vishu Gurav6-Jul-07 11:13 
GeneralRe: Calculating the space occupied by each row in a table Pin
vijay25837-Jul-07 4:23
vijay25837-Jul-07 4:23 
AnswerRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav7-Jul-07 13:26
Vishu Gurav7-Jul-07 13:26 
QuestionRe: Calculating the space occupied by each row in a table Pin
vijay25839-Jul-07 0:01
vijay25839-Jul-07 0:01 
AnswerRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav9-Jul-07 6:44
Vishu Gurav9-Jul-07 6:44 
QuestionRe: Calculating the space occupied by each row in a table Pin
Vishu Gurav10-Jul-07 17:00
Vishu Gurav10-Jul-07 17:00 
QuestionProblem displaying colums as rows => need help Pin
masyarial5-Jul-07 16:09
masyarial5-Jul-07 16:09 
AnswerRe: Problem displaying colums as rows => revised Pin
masyarial5-Jul-07 21:36
masyarial5-Jul-07 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.