Solved

ms sql 2008

Posted on 2013-06-24
5
224 Views
Last Modified: 2013-06-24
I have a mssql server und test database. Test database write too many Logs.(148gb) database is 12gb.

How can i erase or change this Logs ?
0
Comment
Question by:apollo-13
  • 3
5 Comments
 
LVL 6

Assisted Solution

by:Vijay Pratap Singh
Vijay Pratap Singh earned 250 total points
ID: 39270515
To delete data or log files from a database

    In Object Explorer, connect to an instance of the SQL Server Database Engine and then expand that instance.

    Expand Databases, right-click the database from which to delete the file, and then click Properties.

    Select the Files page.

    In the Database files grid, select the file to delete and then click Remove.

    Click OK.
0
 

Author Comment

by:apollo-13
ID: 39270517
that erase Database or only logs?
0
 

Author Comment

by:apollo-13
ID: 39270519
i do not want to erase database
0
 

Author Comment

by:apollo-13
ID: 39270531
In the Database files grid, select the file to delete and then click Remove.---no Remove
0
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 250 total points
ID: 39270610
In order to shrink log file of database, kindly use the script below:

http://blog.sqlauthority.com/2010/05/03/sql-server-shrinkfile-and-truncate-log-file-in-sql-server-2008/
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now