Solved

SQL Server 2008 Transaction log is now 25gig

Posted on 2011-03-14
4
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Ephraim Wangoya
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:Ephraim Wangoya
Ephraim Wangoya earned 250 total points
ID: 35131866
You can run the command

ALTER DATABASE YourDatabase
SET RECOVERY SIMPLE;
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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