Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all articles
Browse latest Browse all 7696

Shrinking / Deleting Transaction logs from a .BAK file SQL Server 2012

$
0
0

Hi,

I am using SQL Server 2012 and AX 2012 R2 CU7. I am running into some issue which is detailed as below,

Details:

I have taken the back up of Business data from LIVE as a .BAK file (File Name - MicrosoftDynamicAX.bak)

Size of this file is around 44 GB.

My Dev Server is having 64 GB in my drive as the free space available. Now while restoring this MicrosoftDynamicAX.bak file on my DEV server, I am getting insufficient available space.

When i went to LIVE database server, i observed the below,

Size of MDF file is 44 GB 

Size of LDF file is 40 GB

So total of MDF + LDF = 84 GB.

But the bak file that I have is of 44 GB.

I read in some blog that while restoring this BAK file it will treat the size of the file to be 84 GB (MDF+LDF).

(Please correct me if my understanding is wrong)

I know of the option that we can change to Recovery mode to SIMPLE and then shrink to database(LOG - LDF) to few MBs and then take the backup.

My query ::

Is it possible to shrink / delete ONLY the Transaction LOGs from this BAK file  which I already have with me using some command?

Sincerely,

Muneeb


Viewing all articles
Browse latest Browse all 7696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>