1) With both the original .MDF and .LDF files located where they supposed to be, run RMS Admin and select the database you want to shrink.
2) Issue this query to find the log device name: SELECT FILE_NAME(2). This will return the name of your log device (in our case, we called the database SS1 and the log device name is Store1_log).
3) Issue this query: DBCC SHRINKFILE (Store1_log, 1). If this does not shrink the file, proceed to the next step
4) Issue this query: BACKUP LOG SS2 WITH TRUNCATE_ONLY (Replace SS2 with the name of your database FOR EXAMPLE RMS_Store1)
5) Then run this query: DBCC SHRINKFILE (Store1_log, 1)
BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.