|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 2:33 PM
Points: 5,201,
Visits: 11,150
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 2:25 PM
Points: 956,
Visits: 873
|
|
Excellent tip to "trick" SQL into thinking we did a full backup/restore of the DB to be able to move the new database file.
Cheers, Steve
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 3:31 AM
Points: 113,
Visits: 470
|
|
nice article. one question?
in your backup TLog statement did you mean to say....
BACKUP DATABASE AdventureWorks TO DISK = '\\hanode1\backup\AdventureWorks_createnewfile.trn' WITH INIT ?
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 2:33 PM
Points: 5,201,
Visits: 11,150
|
|
dibbydibby (3/1/2011)
nice article. one question? in your backup TLog statement did you mean to say.... BACKUP DATABASE AdventureWorks TO DISK = '\\hanode1\backup\AdventureWorks_createnewfile.trn' WITH INIT ? Hi well spotted, no the backup and the restore statement should read
BACKUP LOG RESTORE LOG
Regards Perry
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 4:26 AM
Points: 380,
Visits: 1,013
|
|
good article and good tip for addining files without the need to do a full backup and restore.
_____________________________________________________________________________ MCITP: Business Intelligence Developer (2005)
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 8:17 AM
Points: 8,
Visits: 63
|
|
Hi Perry,
Another good article, thanks for the tip!
Cheers
John
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 3:23 PM
Points: 5,264,
Visits: 11,191
|
|
nice article Perry and very useful info.
I think the lesson to take away though is to set your live and failover servers up with exactly the same drive\directory structures in the first place.
---------------------------------------------------------------------
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 11:21 AM
Points: 2,163,
Visits: 2,148
|
|
| Thank you very much for the article, it is good to learn about the pitfalls before actually falling into them.
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Thursday, May 16, 2013 1:46 PM
Points: 18,732,
Visits: 12,329
|
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 2:33 PM
Points: 5,201,
Visits: 11,150
|
|
Guys
Thank you very much for all your kind replies I'm glad you find it useful
george sibbald (3/1/2011)
I think the lesson to take away though is to set your live and failover servers up with exactly the same drive\directory structures in the first place.  George I couldn't agree more, although sometimes you may inherit a system and will have to roll with it. This is especially for these types of systems
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|