Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

When we are using this query to shrink the log file,what
exactly it will execute internally? Do we lose any data
when we run this script? which data it will truncate in the
log file and where it is saved. Please let me know...

USE DatabaseName
GO
DBCC SHRINKFILE(<TransactionLogName>, 1)
BACKUP LOG <DatabaseName> WITH TRUNCATE_ONLY
DBCC SHRINKFILE(<TransactionLogName>, 1)
GO

Answer Posted / purushothaman

It will remove the uncommitted data

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to update multiple rows with one update statement in ms sql server?

1196


Explain tablesample?

989


What is database mirroring?

1105


What is a Join and explain its types?

1093


Define outer join in sql server joins?

924


Delete duplicate rows without using rowid.

1531


how can a database be repaired? : Sql server administration

963


What is shared lock?

893


How do we synchronize On-Premise SQL server with SQL Azure?

121


How do I open port 1433?

928


What is the difference between nvl and nvl2?

942


What is exporting and importing utility?

1075


Define Unique Key?

992


where the connection string store in the database

2062


What is a benefit of using an after insert trigger over using a before insert trigger?

976