Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

How do I truncate a LOG?
I have SQL Server 2000 ...

I thought that Scheduled Backups would truncate the existing the Log
files... but, that doesn't seem to be happening.. I have one log file that i
s
quite large and growing... despite weekly backups....

What is the best way to truncate log files... ???

thanks..

Report this thread to moderator Post Follow-up to this message
Old Post
MSUTech
03-29-06 04:23 PM


Re: How do I truncate a LOG?
If you have autoshrink option is on it will shrink, but shrink log only
if you have space issue.
By default SQL Server after backup truncate backed up log, but do not
free space.
It will reuse space when needed, and it helps to reduce load on server
for growing database files sizes.

You can use DBCC Shrinkfile to shrink database.
Look at books online for Shrinking the Transaction Log

Regards
Amish Shah


Report this thread to moderator Post Follow-up to this message
Old Post
amish
03-29-06 04:23 PM


Re: How do I truncate a LOG?
http://www.karaszi.com/SQLServer/info_dont_shrink.asp

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/
Blog: http:// solidqualitylearning
.com/blogs/tibor/


"MSUTech" <MSUTech@discussions.microsoft.com> wrote in message
news:B46A8994-FA94-4261-B2BF- 2985256BC7F7@microso
ft.com...
>I have SQL Server 2000 ...
>
> I thought that Scheduled Backups would truncate the existing the Log
> files... but, that doesn't seem to be happening.. I have one log file that
 is
> quite large and growing... despite weekly backups....
>
> What is the best way to truncate log files... ???
>
> thanks..


Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
03-29-06 04:23 PM


Re: How do I truncate a LOG?
MSUTech  wrote:
> I have SQL Server 2000 ...
>
> I thought that Scheduled Backups would truncate the existing the Log
> files... but, that doesn't seem to be happening.. I have one log file that
 is
> quite large and growing... despite weekly backups....
>
> What is the best way to truncate log files... ???
>
> thanks..

Remember that a database backup doesn't do anything to the logfile.
You'll have to specifically do a logfile backup in order to truncate the
logfile. Also keep in mind that a log backup doesn't shrink the actual
physical file - it only truncate it so the already allocated space can
be reused.

Regards
Steen

Report this thread to moderator Post Follow-up to this message
Old Post
Steen Persson (DK)
03-30-06 01:23 AM


Re: How do I truncate a LOG?
Thanks for the information...

One last question.... in regards to the SERVER PAGE FILE.... if this logfile
gets large... does it have any impact on the Server Page File....

in other words... does this logfile... sit in server memory???

thanks...

"Steen Persson (DK)" wrote:

> MSUTech wrote: 
>
> Remember that a database backup doesn't do anything to the logfile.
> You'll have to specifically do a logfile backup in order to truncate the
> logfile. Also keep in mind that a log backup doesn't shrink the actual
> physical file - it only truncate it so the already allocated space can
> be reused.
>
> Regards
> Steen
>

Report this thread to moderator Post Follow-up to this message
Old Post
MSUTech
03-30-06 02:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 08:05 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006