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 rs.exe utility?

150


What is difference between aggregate and analytic function?

872


What is a recursive stored procedure in sql server?

1085


Define master database?

983


How do you delete a data source?

950


How to use subqueries in the from clause in ms sql server?

1099


How to check status of stored procedure in sql server?

910


When should you use an instead of trigger?

916


What is the use of sign function?

1031


you have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation? : Sql server administration

890


How to rename an existing table with the "sp_rename" stored procedure in ms sql server?

958


how would you store your query in an SSRS report or a Database server?

152


What is the difference between function and stored procedure in sql server?

984


How do I install only the client tools of sql server 2000?

991


explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?

2423