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 are the Prerequisites for Replication?

11351


What is the difference between count () and rowcount ()?

1026


What are different types of raid levels?

1168


Define tool Manage Statistics in SQL Server 2000 query ?

1093


what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?

1965


What is the difference between commit and rollback?

942


What is dirty read?

1080


What is indexing a document?

1032


Explain the different index configurations a table can have?

945


How to create a simple user defined function in ms sql server?

1020


What is data block and how to define data block size?

1026


Explain the use of keyword with encryption. Create a store procedure with encryption?

961


Explain the commands in sql server?

1038


What is attribute? : sql server analysis services, ssas

1018


What is the recovery model?

989