Solved

ms sql 2008

Posted on 2013-06-24
5
227 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

856 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