473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

Shrinking Logs

AY
I have a transaction log file which is 29 GB in size. I am trying to
reduce it by using dbcc shrinkfile with truncate_only but, it has no
affect on it. So, I tried to look at the logs by running dbcc loginfo
(dbname). The last log is what's active (status is 2). How do I make
this status to wrap to first log so that dbcc shrinkfile would work?
All other logs have status of 0, after running backup log dbname
truncate_only

Thanks.
Jul 20 '05 #1
4 5893
Am*********@adaptec.com (AY) wrote in message news:<22*************************@posting.google.c om>...
I have a transaction log file which is 29 GB in size. I am trying to
reduce it by using dbcc shrinkfile with truncate_only but, it has no
affect on it. So, I tried to look at the logs by running dbcc loginfo
(dbname). The last log is what's active (status is 2). How do I make
this status to wrap to first log so that dbcc shrinkfile would work?
All other logs have status of 0, after running backup log dbname
truncate_only

Thanks.


Hi,
Initially do a backup log <dbname> with no_log and then do the dbcc
shrinkdatabase. That will take care of it.

Regards,
-Manoj
Jul 20 '05 #2

"AY" <Am*********@adaptec.com> wrote in message
news:22*************************@posting.google.co m...
I have a transaction log file which is 29 GB in size. I am trying to
reduce it by using dbcc shrinkfile with truncate_only but, it has no
affect on it. So, I tried to look at the logs by running dbcc loginfo
(dbname). The last log is what's active (status is 2). How do I make
this status to wrap to first log so that dbcc shrinkfile would work?
All other logs have status of 0, after running backup log dbname
truncate_only
What version of SQL Server?


Thanks.

Jul 20 '05 #3
AY
"Greg D. Moore \(Strider\)" <mo*****@greenms.com> wrote in message news:<XO******************@twister.nyroc.rr.com>.. .
"AY" <Am*********@adaptec.com> wrote in message
news:22*************************@posting.google.co m...
I have a transaction log file which is 29 GB in size. I am trying to
reduce it by using dbcc shrinkfile with truncate_only but, it has no
affect on it. So, I tried to look at the logs by running dbcc loginfo
(dbname). The last log is what's active (status is 2). How do I make
this status to wrap to first log so that dbcc shrinkfile would work?
All other logs have status of 0, after running backup log dbname
truncate_only


What version of SQL Server?


Thanks.

SQLServer 7.
Jul 20 '05 #4

"AY" <Am*********@adaptec.com> wrote in message
news:22*************************@posting.google.co m...
"Greg D. Moore \(Strider\)" <mo*****@greenms.com> wrote in message

news:<XO******************@twister.nyroc.rr.com>.. .
"AY" <Am*********@adaptec.com> wrote in message
news:22*************************@posting.google.co m...
I have a transaction log file which is 29 GB in size. I am trying to
reduce it by using dbcc shrinkfile with truncate_only but, it has no
affect on it. So, I tried to look at the logs by running dbcc loginfo
(dbname). The last log is what's active (status is 2). How do I make
this status to wrap to first log so that dbcc shrinkfile would work?
All other logs have status of 0, after running backup log dbname
truncate_only


What version of SQL Server?


Thanks.

SQLServer 7.


Try:

http://support.microsoft.com/default...b;en-us;256650

Worked well for me.

Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John Mosey | last post by:
A huge (and never used) database log was taking up about 4 GB of HD space. We want the data for historical capacity, however, don't care about the transactions log. After a bit of research I ran...
1
by: willie | last post by:
Hi all: I restored one backup database (7.9 GB mdf) on two diffrent servers. I shrunk them by clicking "Move pages to beginning of file before shrinking". After shrinking, one mdf file is 6.7...
6
by: Jens | last post by:
I have a database file LEAR_Index(yes, it hold index data) from a have have recently removed a bunch of data. It is about 120 Gb, 100Gb of which is not used. I wan´t to shrink the file to lean...
1
by: jeffreyv | last post by:
Hi! I'm studying to have my MCSE 70-228 certification and I'm trying some things with backing up transaction logs and shrinking it. Here's what I do: There is no activity in the database by...
2
by: John Baker | last post by:
Hi: I have a report that contains a remarks field which is a "memo" format field. I have that field on a single line in the report, and have it given a property of "Can Shrink", in the hope that...
5
by: d.grabov | last post by:
Can anyone offer some advice on how to reduce the size of a database log. The database is mirrored on another server using the logs. Thanks
7
khickyphutz
by: khickyphutz | last post by:
Good day! I would like to ask for a technical advice regarding transaction logs. Right now, our server only have 2.8GB due to the transaction log of our database which is 65GB now. Its database...
0
by: kazper | last post by:
Good day, I have some problems regarding my Hard disk space for my logs in SQL Server 2005. When I try shrinking the database it returns an error not letting me to do anything about the size of...
2
by: Joell | last post by:
Hello, I need help with shrinking the actual log file. I keep shrinking the trans logs but then it just reverts back to a 1 gig size trans log fille even after I have shrunk the file. What can I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.