Truncating Transaction Logs

Mar 1, 2007

Hi

I just wanted to know can you truncate transaction logs in SqlServer 2000 and if so how is this done?

Thanks

View 1 Replies


ADVERTISEMENT

Truncating Transaction Logs.

Jun 7, 2001

I am having trouble Truncating a Transaction Log. I`ve tried everything in Book Online.
I`ve backed up the database, I`ve tried DBCC SHRINKFILE, DBCC SHRINKDATABASE, BACKUP LOG TRUNCATE_ONLY ...etc, but it will not shrink. Any suggestions ? Thanks.

View 1 Replies View Related

Backup Without Truncating Logs?

Dec 20, 2007

I've got a Sql server 2000 box that currently backs up to tape in full every night. I also want to back the box up off site but not in full (as 30GB is a little too much to transfer every evening).

So my plan was to do a full backup to tape at 7pm then a differential at 8pm (to transfer off site).

The problem I am having is that after my differential has been done the logs get truncated so if I want to replay them for any reason I need to get that differential back to site.

Anyone have any suggestions please?

View 7 Replies View Related

Truncating Logs In Logshipping

Sep 20, 2007

How can you truncate database logs without disrupting log shipping configuration on that database

View 2 Replies View Related

Automatic Truncating Logs

Jan 31, 2008

Hi,
I am a new DBA is small company. Some of the databases grows by few GB everyday, so I am thinking to set automatic truncating for those databases.

Is this a best practise?

Can you please recommend Ideal Recovery model after reading my current model:

1. I do Full backup every night.
2. After 6 hrs, Differential backup.
3. After 1 hr Log backup.

Also please suggest me how many time should I do Re-Indexing?

Thanks,Dipak

View 3 Replies View Related

SQL 2012 :: Schedule Truncating Of Logs?

Mar 19, 2014

We have many customers with a large database, many workers and many database transactions. Every night the databases are "full backupped". Regularly the logfiles (dbname_log.ldf) grow very large, for example a database (dbname.mdf) of 60GB and a logfile equal in size. When the drive becomes too full, I truncate these logfiles to free diskspace.

Question: is it a good decision to run a script that, after the daily full backup, truncates the logfile if it is larger than for example 10GB?

View 4 Replies View Related

Commiting Transactions/Truncating Transactional Logs/Replication Latency

Feb 22, 2008

Hi,

I have multiple questions and would appreciate any suggestions in resolving them. I'm a novice to these issues.

1) First of all, what is the exact command to setup the trunc. log on chkpt. option on for a transactional log of a SQL Server 2000 database? Is this option on by default? I have noticed for one of the databases I'm managing that the transaction log was over 12 GB, while the db was only 425 MB.

2) How's it possible to run a DBCC TRACEON to see the content of the transaction log to see if we are having any issues with any uncommitted transactions, i.e. updates, inserts, and/or deletes.

3) What are the commands to truncate inactive transactions and increasing the readbatchsize?

4) lastly, how do I validate transactional replication via checksum and find valid latency between a small number of changes that need to be committed between publisher and subscriber.

Thank you so much in advance!
Sincerely,
Alla

View 3 Replies View Related

Truncating The Transaction Log

Mar 19, 2001

Hi all,
This is a database on which there are continuous inserts and updates. Data is loaded into this database in bulk at regular intervals. I do not back up the transaction log. For these reasons, I have set the options, 'select into/bulk copy' and 'truncate log on checkpoint'. When the 'truncate log on checkpoint' option was not set, the log file would grow very huge and fill up the entire disk space(file growth is unlimited). But, even after the 'truncate log on checkpoint' option has been set, the log file does grow at times to fill up the entire disk. I assumed that since the 'truncate log on checkpoint' option was set, the inactive portion of the log would be truncated every 1 minute(ie, during every checkpoint). Could someone please explain the reason for this behaviour?

Thanks in advance,
Praveena

View 6 Replies View Related

Truncating The Transaction Log

Jun 22, 2001

hello,
Daily, after a database backup done in the evening, around 3am we have a lot of flat files to integrate in tables and then process.

The question is : We want to free the space used by the transation log.
Then, we use "backup log with no_log" and/or "backup log with truncate_only"
We look at the size of the transaction log with "dbcc sqlperf( logspace )" but the 'Log space used %' stays the same.

Could you give us some informations or tips on this.

Thank you from Paris
Patrick

View 4 Replies View Related

SQL 6.5 Truncating Transaction Log

Jan 28, 2004

Recently I start working with SQL 6.5 server on NT4 (sp6)

Before me someone make abnormal reinstallation of this SQL server.
after that server need to be restarted every day

On the database edit window I have seen that Avaluable Log Space is 0
and in the course of working with device have seen that device definition
is erroneous. the path to file is different from the name of file,
i.e. in device defined (D:aaa03_log) and actually present file
(D:aaalog_03)

and as result every operation on device get the error.
I have change the name of the file to match the sql device definitions but
first this don't helped.
I have added new device and expanded the database log on it, but Avaluable Log Space remains 0.
After a number of restarts I noticed that old erroneous device is now
become visible and I can work with it, for instance expand it. But Avaluable Log Space remains 0 and in the sql monitor I also see that log occupied 100% of avaluable space.

May be transaction log located with data and I just can't see that ?

There is option on database edit window: Truncate transaction Log
and I want run it. The organisation don't interested in log. main thing is that the data will be safe.

Is it the right thing to do?

Tanks to everyone who can help

View 1 Replies View Related

Truncating A Transaction Log

Feb 4, 2008

2 Questions?

1. When I do a full backup, does that truncate my transaction log? Or does only a backup of transaction log will truncate a transaction log?

View 6 Replies View Related

Transaction Logs

Apr 24, 2002

What is the best way to clear the transaction logs. My backup job each night is ending because it says it is running out of disk space and I need to clear up the transaction logs. Any help is appreciated. I see many different options (trucate option, auto shrink, etc.), just need some assistance tosome more specific best approaches. Thanks

View 3 Replies View Related

Transaction Logs

Aug 13, 2001

Im having issues truncating my transaction logs. I have logs in excess of 40 gigs. All the info in the BOL is very vague. Any assistance would be apreciated.

Regards

SeTi Ni

View 5 Replies View Related

Transaction Logs

Jun 22, 2000

When we backup the transaction log,will it truncate the log or it will grow from there?Truncate log on check point is desabled.
Thanks!

View 2 Replies View Related

Transaction Logs

Aug 30, 2000

to take the transaction log back up regularly I should have truncate log on check point false. If I do so then how will I truncate the log.
regards,
Renu

View 3 Replies View Related

Transaction Logs

Aug 20, 1998

I am trying to import records via bcp (about 1,500,000 records) and I keep running out of disk space. Is there any way to limit or do away with the transaction log (and still be able to import)?

View 2 Replies View Related

Transaction Logs Help!!!!!!!!!

Dec 14, 1999

how do i decrease the transaction log example 500mb to 100mb, can you help me with the syntax pls!!

View 1 Replies View Related

Transaction Logs

Sep 2, 2004

I need to move transaction logs to a different drive and am looking for a way to do it without detaching the db.

Can I create a second transaction log file for the DB and then delete the original log file?

What is the best way to do this for db's that are being replicated?

Thanks,
Ken Nicholson

View 3 Replies View Related

Transaction Logs

Jun 13, 2002

I need to seperate my SMS data files and transaction logs onto two seperate drives. Can anyone assist me with this?

thanks...

View 1 Replies View Related

Transaction Logs

Aug 2, 2004

HELP!!!!

When I look at the Database maintience plan history entry for backup I have a message that reads: "Backup can not be performed on this database. This sub task is ignored".

Have anyone come across this error before?? As part of the Maintenance plan some transaction log are being backup and some aren't instead they receive the message above.

Thanks

Lystra

View 2 Replies View Related

Transaction Logs

Nov 19, 2004

Has anyone ever had the problem of the IT department not backing up thier transaction logs simply because they didnt find it necessary??

View 3 Replies View Related

Transaction Logs

Jan 8, 2004

i have several sql servers doing maintenance plans and backing up the transaction logs to tape. unfortunately it seems that the server keeps adding the transaction logs to the same tape, without overwriting them. Nowadays a transaction log backup to disk takes 2 minutes but when done to tape it is taking up 1hr54minutes. What can i do so that the tape is automatically initialised without having to do it manually... Thanks

View 1 Replies View Related

Transaction Logs

Apr 9, 2008

i was wondering if smeone could give me a breif over view how far back do these go

View 12 Replies View Related

Transaction Logs And LDF

Jun 11, 2008

HI All,

Is this is a good idea or not?

If i attached my SQL Server to SAN only for DATA and LOG (Ldf) drives
through the FC. then we put *.bak and *.trn on to local disk RAID 1 drive?

Any performance isues?

View 3 Replies View Related

Transaction Logs

Dec 7, 2007

Is there a way to view the transactions from a .TRN transaction log file? If so can I overwrite some of the transactions on the file and then restore from it? I am just curious.

View 2 Replies View Related

Transaction Logs

Mar 11, 2007

Hi, I know just about nothing about SQL Server. I am getting this error:The log file for database 'my_database' is full. Back up the transaction logfor the database to free up some log space.I can't access the transaction logs to back them up. I am told that my ISP'stech support should have it set up to shrink those logs automatically everyso often. Is that true?Why are they needed? Up till Monday, the logs are just of our getting SQLServer set up, so couldn't the logs just be deleted? Most of my site can'trun with this problem.I'd appreciate any enlightenment anyone can give me!Thanks, Jill

View 1 Replies View Related

Transaction Logs

Jul 20, 2005

This seems like it'd be a really stupid question, but for the life of me Ihaven't been able to find an answer that works....I have a database that's approximately 400MB when shrunk... and thetransaction logs are at about 4.8GB when shrunk... I can't seem to get thetransaction log any smaller, no what I try. How can I get the log downbelow 1GB and keep it there? I've only got an 18GB hard drive and I need torun 2 copies of this database.-steve

View 4 Replies View Related

Reading Transaction Logs?

Jan 8, 2008

Hello,
I am trying to figure out the time a certain store procedure  was executed. I know the SP's name and approximetly the time it was executed. Is this possible to do?
Honestly, i am not sure if SQL server 2005 is smart enough to keep track of commited transaction on the server.
 
Any suggestins?
Thanks

View 2 Replies View Related

SQL 7.0 Transaction Logs Won't Shrink!!!

Jun 5, 2002

I have seen quite a few people post this type of problem, but I am finding few solutions. Your advice and/or experiences are greatly appreciated.

Here's my scenario:

Environment: Windows NT 4.0 SP 6, SQL 7.0 (set up for Transactional Replication)

Problem: We have several remote dB machines configured for full recovery. On these machines are several dB's that are capturing aprox. 280 data points per second per unit. (Each dB represents one unit, and we have 21 units) No problem here. The problem is the transaction logs, that obviously grow profusely, will not SHRINK after, backups, dbcc commands and TSQL has been issued in failed attempts to shrink the logs. (in other words we've tried everything)

My questions are:

1. Because we are replicating, is it absolutely necessary to configure dB's for FULL recovery? How do I check in 7.0 if the dB is certainly in FULL vs. SIMPLE recovery mode?

2. I work with SQL 2000 and shrinking files is no problem. How can we shrink these log files in SQL 7.0?

It is rather urgent I find a solution as we are running out of hard drive space on our remote machines. Please help :-(

Christine

View 1 Replies View Related

How Can I Move Transaction Logs?

May 4, 2000

Currently, my databases and their corresponding transaction logs are all on the same disk array. I finally was able to acquire a seperate disk, specifically to seperate the logs, in case of failure, etc.
Now, I need to figure out how to go about moving the tansaction logs off the current disk array and on to the new disk.
In Enterprise Manager, I brought up "Properties" for the first database, and went to the "Transaction Log" tab. Clicked on the "browse" or "..." button in the location field and got the following message:
"A transaction log file's physical name cannot be changed once the transaction log file has been created". :(

I have been looking through Books On Line, but have been unable to find anything helpful yet.

Can anyone help me figure out how to go about moving a transaction log's location? There has to be some way.
Even if it involves shutting down the server, altering system tables, etc. I need to get these moved.

Your help is appreciated. Thanks.

View 2 Replies View Related

Help !!! None Of My Transaction Logs Are Getting Backed Up

Jan 19, 2001

Hi all,

I have set up a maintenance plan to backup my databases but when I view the maintenance plan history the transaction log backup steps have a success tick but a message saying :

"Backup can not be performed on this database. This sub task is ignored"

I have looked in my backup directory and only see *.BAK files and no *.TRN.
The transaction logs are supposed to back up at 1AM and the databases at 2AM

All my databases being backed up have the truncate log on checkpoint option set. Is this best practise according to my backup schedule ?

Help !!!!

Regards,

Tim

View 4 Replies View Related

Moving Transaction Logs

Jun 15, 2000

Is it possible to move .ldf's to another drive. For example I would like to move a database transaction log file from C:mssql7data to D:mssql7logs.

How can this be done?

TIA!
JJ

View 1 Replies View Related

Restoring From Transaction Logs.

Aug 28, 2000

Hi all,

I am restoring database from Transaction Logs. I followed all the steps
mentioned in the book. Just before the last step there are three options
1. Leave Database Operational. No Additional Logs can be Restored.
2. Leave Database Nonoperational But Able to Restore Additional
Transaction Logs.
3. Leave Database Read_Only And Able To Restore Additional Transaction Logs.

Option 2 and 3 aresupposed to set on the NORECOVERY flag.

I tried both options 2, and 3 , But still got messages that I did not
specify WITH NORECOVERY or WITH STANDBY.

Can anyone please tell me what I am doing wrong?

Thanks in Advance.

Attaullah

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved