I received the following email from one of my readers.
Dear Pinal,
I am new to SQL Server and our regular DBA is on vacation. Our production database had some problem and I have just restored full database backup to production server. When I try to apply log back I am getting following error. I am sure, [...]
Archive for the ‘SQL Backup and Restore’ Category
SQL SERVER – Fix : Error : 3117 : The log or differential backup cannot be restored because no files are ready to rollforward
Posted in Pinal Dave, Readers Question, SQL, SQL Authority, SQL Backup and Restore, SQL Error Messages, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, T SQL, Technology on March 21, 2010 | Leave a Comment »
SQL SERVER – Find Location of Data File Using T-SQL
Posted in Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, T SQL, Technology on January 2, 2010 | 8 Comments »
While preparing for the training course of Microsoft SQL Server 2005/2008 Query Optimization and & Performance Tuning, I needed to find out where my database files are stored on my hard drive. It is when following script came in handy.
SELECT SUBSTRING(physical_name, 1,
CHARINDEX(N’master.mdf’,
LOWER(physical_name)) - 1) DataFileLocation
FROM master.sys.master_files
WHERE database_id = 1 AND FILE_ID = 1
Resultset:
DataFileLocation
————————————————————————–
C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\
(1 [...]
SQL SERVER – Mirrored Backup and Restore and Split File Backup
Posted in Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQLServer, T SQL, Technology on September 2, 2009 | 14 Comments »
Introduction
This article is based on a real life experience of the author while working with database backup and restore during his consultancy work for various organizations. We will go over the following important concepts of database backup and restore.
Conventional Backup and Restore
Spilt File Backup and Restore
Mirror File Backup
Understanding FORMAT Clause
Miscellaneous details about Backup and Restore
Note: [...]
SQL SERVER – Backup master Database Interval – master Database Best Practices
Posted in Best Practices, Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Query, SQL Server, SQL Tips and Tricks, SQLServer, T SQL, Technology on August 12, 2009 | 15 Comments »
During a recent consultancy project, I was asked to review a Database Backup plan. While going through the plan, I noticed that there was no backup for the master database. When I questioned this, the DBA informed me that it was not necessary. I was startled and couldn’t resist explaining to him that the master [...]
SQL SERVER – Four Different Ways to Find Recovery Model for Database
Posted in Pinal Dave, SQL, SQL Authority, SQL Backup and Restore, SQL Data Storage, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, T SQL, Technology on July 16, 2009 | 8 Comments »
Perhaps, the best thing about technical domain is that most of the things can be executed in more than one ways. It is always useful to know about the various methods of performing a single task. Today, we will observe four different ways to find out recovery model for any database.
Method 1
Right Click on Database [...]
About Pinal Dave
Pinalkumar Dave is a Microsoft SQL Server MVP and a Mentor for Solid Quality India. He has written over 1200 articles on the subject on his blog at http://blog.sqlauthority.com. He is a dynamic and proficient Principal Database Architect, Corporate Trainer and Project Manager, who specializes in SQL Server Programming and has 7 years of hands-on experience. He holds a Masters of Science degree and a number of certifications, including MCDBA and MCAD (.NET). He is also Regional Mentor for PASS Asia.

-
Blog Stats
- 13,721,468 (13 Million+)
SQLAuthority Links
.
My Homepage
My Resume
My Other Blog
I prefer Idera
--------------------
Top Downloads
PDF Downloads
Script Downloads
Script Bank
Favorite Scripts
All Scripts - 1
All Scripts - 2
Top Articles
Best Articles
Favorite Articles - 1
Favorite Articles - 2
--------------------
SQL Interview Q & A
SQL Coding Standards
SQL FAQ Download
--------------------
Jobs @ SQLAuthority
Pages
Categories
- About Me (69)
- Best Practices (98)
- Business Intelligence (27)
- Data Warehousing (39)
- Database (284)
- DBA (130)
- MVP (109)
- Poll (5)
- Readers Contribution (43)
- Readers Question (55)
- Software Development (67)
- SQL Add-On (93)
- SQL Backup and Restore (56)
- SQL BOL (11)
- SQL Coding Standards (21)
- SQL Constraint and Keys (52)
- SQL Cursor (28)
- SQL Data Storage (48)
- SQL DateTime (38)
- SQL Documentation (242)
- SQL Download (243)
- SQL Error Messages (136)
- SQL Function (126)
- SQL Humor (25)
- SQL Index (115)
- SQL Interview Questions and Answers (60)
- SQL Joins (65)
- SQL Optimization (88)
- SQL Performance (249)
- SQL Puzzle (29)
- SQL Security (121)
- SQL Server DBCC (42)
- SQL Server Management Studio (28)
- SQL Stored Procedure (105)
- SQL String (22)
- SQL System Table (54)
- SQL Trigger (24)
- SQL User Group (53)
- SQL Utility (128)
- SQL White Papers (50)
- SQLAuthority (431)
- SQL Training (3)
- SQLAuthority Author Visit (92)
- SQLAuthority Book Review (20)
- SQLAuthority News (397)
- SQLAuthority Website Review (39)
- SQLServer (104)
- Tech (1005)
- Pinal Dave (995)
- SQL Scripts (583)
- Technology (1283)
- SQL (1283)
- SQL Authority (1283)
- SQL Query (1283)
- SQL Server (1283)
- SQL Tips and Tricks (1283)
- T SQL (1283)
-
Top Posts
- SQL SERVER - Insert Data From One Table to Another Table - INSERT INTO SELECT - SELECT INTO TABLE
- SQL SERVER - Insert Multiple Records Using One Insert Statement - Use of UNION ALL
- SQL Server Interview Questions and Answers Complete List Download
- SQL SERVER - FIX : ERROR : (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: )
- SQL SERVER - Retrieve Current Date Time in SQL Server CURRENT_TIMESTAMP, GETDATE(), {fn NOW()}
- SQL SERVER - Interview Questions & Answers Needs Your Help
- SQL SERVER - Import CSV File Into SQL Server Using Bulk Insert - Load Comma Delimited File Into SQL Server
- SQL SERVER - Convert Text to Numbers (Integer) - CAST and CONVERT
- SQL SERVER - 2008 - Download and Install Samples Database AdventureWorks 2005 - Detail Tutorial
- SQL SERVER - 2008 - Interview Questions and Answers - Part 1
- SQL SERVER - 2005 NorthWind Database or AdventureWorks Database - Samples Databases
- SQL SERVER - 2005 - Create Script to Copy Database Schema and All The Objects - Stored Procedure, Functions, Triggers, Tables, Views, Constraints and All Other Database Objects
Top 5 Commenters
-
Authors
-
pinaldave
- SQL SERVER – Fix : Error : 3117 : The log or differential backup cannot be restored because no files are ready to rollforward
- SQLAuthority News – Microsoft SQL Server Protocol Documentation Download
- SQL SERVER – Interview Questions & Answers Needs Your Help
- SQL SERVER – Mirroring Configured Without Domain – The server network address TCP://SQLServerName:5023 can not be reached or does not exist
- SQL SERVER – Difference Between ROLLBACK IMMEDIATE and WITH NO_WAIT during ALTER DATABASE
- SQL SERVER – Quick Note of Database Mirroring
- SQL SERVER – MAXDOP Settings to Limit Query to Run on Specific CPU
- SQLAuthority News – Interesting Whitepaper – We Loaded 1TB in 30 Minutes with SSIS, and So Can You
- SQLAuthority News – SQL Server 2008 R2 Update for Developers Training Kit (March 2010 Update)
- SQLAuthority News – Download Microsoft SQL Server JDBC Driver 3.0 CTP 1
-
Archives
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006

