Solved

SQL Server 2008 Transaction log is now 25gig

Posted on 2011-03-14
4
254 Views
Last Modified: 2012-08-13
Hi everyone,

How can I delete or reduce the transaction log in SQL server 2008. I don't need the transaction log. I use SQL for my vcenter database and I backup everyday the database.

Thank in advance for your help!
0
Comment
Question by:jonathan_camirand
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
Saqib Khan earned 250 total points
ID: 35131695
USE DATABASE;
GO
SELECT file_id, nameFROM sys.database_files;
GO
DBCC SHRINKFILE (1, TRUNCATEONLY);


or Right Click on Database and choose SHRINK DB Option.
0
 
LVL 32

Expert Comment

by:ewangoya
ID: 35131749


Change your database model to simple instead of truncating your log file
0
 

Author Comment

by:jonathan_camirand
ID: 35131803
How can I do that? I'll shrink my database too
0
 
LVL 32

Assisted Solution

by:ewangoya
ewangoya earned 250 total points
ID: 35131866
You can run the command

ALTER DATABASE YourDatabase
SET RECOVERY SIMPLE;
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question