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

What is bcnf normalization form?

1158


Is the primary key column of a table an index in ms sql server?

1001


What is the difference between implicit and explicit transaction?

1052


How to create prepared statements using odbc_prepare()?

1101


what's new in sql server 2016?

1003


How to throw custom exception in Stored Procedure?

1091


What is user-defined function? Explain its types i.e. Scalar and inline table value user-defined function?

936


What is similarity and difference between truncate and delete in sql?

1151


What are the ways available in sql server to execute sql statements?

1204


Give me a SQL Query to find out the second largest company?

1227


What is service broker?

1060


How to update values in a table with update statements in ms sql server?

1059


What are sql servers used for?

1111


Explain ms sql server reporting services vs crystal reports?

973


What are tables in sql server?

1095