Transaction Logging Backup Set

Jul 20, 2005

Hi

I take one nightly full database backup at 02:00 and backup the
transaction log to one backup set every 15mins.

The commands to do this are as follows and are set up to run as
database jobs:

-- Database Backup
BACKUP DATABASE [ThikosDatabase] TO [DatabaseBackUp] WITH NOINIT ,
NOUNLOAD , NAME = N'ThikosDatabase backup', NOSKIP , STATS = 10,
NOFORMAT

-- Transaction Log Backup Every 15mins.

BACKUP LOG [ThikosDatabase] TO [TransactionLog] WITH NOUNLOAD , NAME
= N'TransactionLogBackUp', NOSKIP , STATS = 10, DESCRIPTION =
N'BackUp the transaction Log every 15 minutes every day.', NOFORMAT,
RETAINDAYS = 0

At the moment the transaction log backups every 15mins are simply
being added one by one to the one backup set. I want the backed up
transaction logs in the backup set after 24hrs to be overwritten so
disk space does not add up. I thought RETAINDAYS would do this as an
expirydate is set to expire on the time it is created so i would have
expexted it to be overwritten when that time comes around the next
day. (But is doesent)

I think it is ok to overwrite the transaction log in the backupset
after 24hrs as you only need the transaction logs since the last full
backup (which happens nightly at 02:00) for recovery.

Does anyone have any ideas?

Many thanks.

Thiko!

View 3 Replies


ADVERTISEMENT

Transaction Logging

Oct 20, 2005

Lets say I have version 1 of a database - DB1. I  am creating the second database, DB2.

What I need is a log of all the SQL statements that where used to
change DB1 into DB2. This means recording both what happened in the GUI
and in the SQL Query Analyser.

Is there a way I can do this? I know SQL Server has a transaction log
somewhere. Is there a way to set this to output all the changes made
from a set date on a database into a SQL log file?

Thanks in advance for any help.

Jagdip

View 3 Replies View Related

DTS And Transaction Logging

Jan 29, 2001

If you use the import feature of DTS to import data into various tables and your database is setup with truncate log on checkpoint set to false, will SQL Server log those transactions?

Thanks,

Veronica

View 1 Replies View Related

Logging Output In A Transaction

Oct 17, 2005

We have a publish job that we are trying to automate, the problem is getting the output back to the app. or a file. Originally we had print statements, this worked great when we manually ran the proc in QA and could capture the output, now that we are automating it from an application I am not sure how to capture these Print statements - ideally I would like to find this out.

The App. is doing a Try-Catch block so using something like isql.exe will not do the trick otherwise that is the route we would go.

I tried logging everyting to a table but those inserts get rolled back with XACT_ABORT. What about the xp proc that logs it to the event log? Thought of that but that would make a real mess of the event log with all of our status messages.

Now we are considering using xp_cmdshell that calls a batch file to output our status text, is this my best option? I would prefer to capture all of the print statements so if anyone knows how to do this that would be preferable!

Thanks!

View 1 Replies View Related

Minimize Transaction Logging

May 14, 2007

We use SQL PE 2000 in our lab to store sampled data (lots of data collected at high sampling rate) in real-time. i know this may be an uncommon use of SQL server. For this particular application, performance is much more important than data recoverability. In other words, once-in-a-while data loss is acceptable. Actually we have never used the transaction log for recovery since we started using the SQL PE in this way a few years ago. Certain transaction logging such as bulk deletion is particularly wasteful of the resource. As my understanding from reading the online book and some threads on this forum, the best thing we can do is using bulk-logged recovery model. I am not sure if that helps us at all because it seems that bulk deletion (i.e. DELETE FROM MyTable WHERE ..., may affect hundreds of thousands of records) is not on the list of minimally logged transactions.



I am wondering if anyone could share some good advice.



Thanks in advance!

View 4 Replies View Related

Disable Transaction Logging

May 8, 2007

Hi,



We have a DW project where I would like to disable the transaction logging. Any good advices anyone?

View 3 Replies View Related

Disable Transaction Logging For Table

May 9, 2000

Is it possible to disable the logging operations for insert/update/delete in the transaction file for certain tables?

I have an application where I have to write temporary tables for calculations and printing and all the insert/update/delete absolutely don't have to be logged. They get deleted after use anyway.

Thomas Schoch

View 1 Replies View Related

Task/transaction Token By Logging

Jul 23, 2005

Hallo All,I'm making in my DB some logs.I have a separate table containing:ID,Date,Source,Type,ErrorNo,DescriptionAcctualy the table struct is not immportand that's why I do not postthe script.I have one procedure, which I call in my other function procedures,triggers etc. with parameters.This procedure (WriteToLog) is called, if in other procedures, triggersis any validation, exception or only information which I would like tolog me separately, and it writes the record into this table.But sometimes, it is very hard, to follow much logs, and I figured out,if I could have something like transaction ID, task ID, it will be mucheasier.Firs idea was to, by going from procedures to other procedures, pass aself generated token (ie. date with any additional number). But then, Ineed to change everywhere where I call WriteToLog procedure the callsyntax.Let's say that we have following situation:Procedure1:Action1Select1CompareOfValues1exec WriteToLogAction2CompareOfValues2exec WriteToLogAction3exec Procedure2Procedure2:Action1exec WriteToLogSelect1Insert1Trigger1Started:Action1CompareOfValues1exec WriteToLogAction2Trigger1Exit:Procedure2Exit:Procedure1Exit:Now ... I could pass this my generated number, from SP to SP and so on.But I would like to now, does the MS SQL server has something whatidentifies transaction like descripted below.In this case, I do not need to pass any number, only I need to get thisnumber anyhow in SP WriteToLog, and insert it into my log table.Any sugestions?Thank's in advance.Mateusz

View 3 Replies View Related

Long Blocked Transaction Logging

May 5, 2007

Is there anyone know any feature in SQL server which can detect/log the transaction which has been blocked unusually long? My idea is:



If a transaction has run for over 30 minutes, then log the following information in SQL server log:

1. State of the transaction : Blocked, Running, Sleeping

2. Time happeing

3. Duration

4. Last SQL it run

5. Blocked by which thread and info of the thread : the last SQL it run, the state of the thread.



Possibly it would be run in SQL server agent or SQL profiler has such feature, I am not sure about it. Can anyone suggest? Thanks.

View 4 Replies View Related

How To Switch Off Transaction Logging For Inserts/updates?

Nov 22, 1999

Is there a way to switch off transaction logging for insert and update statements and not only for select into bulk copy?

View 1 Replies View Related

Copy Table In A Database Without Transaction Logging.

Mar 18, 2008

Hi y'all, I am doing some searching in the archived threads, but I have a need to copy a table in a database to a new table in the same database, but the new table will be just a table with test data. There are several million rows in the table and I want to do the copy without logging the new inserts in the transaction log.

Is there an easy way to do this? I found this in my search efforts so far, but am just wondering if there is an easier/better way to accomplish what I want to do.

BTW, I normally wouldn't care, but the boss is complaining that it is taking too long to do the copy for a different team, so asked if I knew a way to copy data to a new table without logging. I don't, so here I am ;)

Here is what I found so far:Following 3 things need to be done
1) create table as not logged initially
2) set autocommit=off
3) and activate the not logged initially option
Now the inserts happen without the use of transaction logs

View 12 Replies View Related

SQL Security :: Backup Status Logging

Jun 9, 2015

We are using sql server 2012. We have configured backup in our setup. We wanted to enable loggigng in such a way that when ever backup job runs it should log the status in error log. How to enable this. As of now it is creating seperate log file in log location after every execution. We wanted them to be logged in Error Log file it self.

View 8 Replies View Related

SQL Security :: Full Backup Needed After Restoration Of Database Before Transaction Log Backup

Jul 15, 2015

We take a full backup in the early morning and hourly transaction log back during the working hours for one database in the production server. The application team made certain changes to the design of the said database in their development server. The backup from the development server was restored to the production server during working hours. After the restoration should we take a full backup before next transactional logbackup? Would the transactional log backup with out a full backup after the restoration of a database be valid?

View 5 Replies View Related

Should Full Backup And Transaction Backup Be From One Plan?

Mar 11, 2008

Hello, everyone:

I just heard that for restore purpose, ths full backup and transaction log backup should be from one maintenance plan. Otherwise transaction log backup files cannot be restored after restoring full backup files.

Is it true? Can anyone offer official documents?

In my system, full and transaction backups are from one maintenance plan. Restores are doing fine. I am not sure that ideal is true or not.

Thanks

ZYT

View 2 Replies View Related

What Is The Differences Between A Differential Backup And Transaction Log Backup??

Jun 13, 2007

what is the differences between a differenctial backup and transaction log backup?

View 1 Replies View Related

Is It Possible To Restore From A Database Backup Without A Transaction Log Backup?

Oct 14, 2007

I neglected to backup the transaction log as part of the process of backing up the database. Now i only have the backup file for the database and no transaction log backup. When i try to do a restore on the database, i get the error on a "tail log missing" message (which i'm assuming is that it's looking for the t-log backup?).

Is it possible to restore or even restore to a new database? I'm only looking to retreive data from 2 tables within the backup file.

Thanks!


SQL Server 2005 on Windows 2003 Server x64.

View 16 Replies View Related

SQL Server 2012 :: Server Autonomous Transaction Logging

May 14, 2014

I know Oracle provide pragma directives to execute autonomous transactions which i used before on Oracle for logging. Now i want to repeat the same in SQL Server but unfortunately i found such pragmas are not existing in SQL Server.After several google searching, i have found that i can use loopback linked server to generate autonomous transaction calls.

If i have Server A & Server B where server B is a loop back server of Server A and all my objects are existing on Server A. I just wanted to user Server B for logging only. should i have logging tables on Server B? Logging procedures on Server A? and call logging procedures (via Execute ) from application procedures residing on Server A?

View 2 Replies View Related

Logging To Event Viewer Fails But SQL Server Logging Works OK - Why?

Jun 18, 2007

Greetings,



I am developing a package on my local workstation. I have defined two logging service providers. One is for SQL Server and the other is for the Windows Event Log. I am using the Dts.Log method in a script task to write log entries.



Logging is working properly with the SQL Server provider and rows are being inserted into the sysdtslog90 table. However, the only events that are being logged in the Windows Event Log are the package start and end events which I believe SSIS is doing automatically anyway.



Is there something I need to do to enable WIndows Event Log logging other than defining a log provider and making sure it is checked active? Won't SSIS write to two different logs with one Dts.Log call? Any ideas on what might be going wrong with my approach?



Thanks,

BCB

View 3 Replies View Related

Logging Package Name For Any Event In Sysdtslog90 Logging Table

Oct 17, 2007



Hi,
I decided to use the SQL Server log provider to store logging data of all my Integration Services packages. I also created some reports about this data for operating purposes.
I have a problem occurs the name of the executing package is not always written to the log,but the name of the single task which failed. But that is not very useful information for operating, because I do not see any chance to get the name of the package by the information which is logged in the sysdtslog90 table in the database which I defined for SSIS Logging.

How do I configure the package to always log the package information into the table, too?


Best regards,
Stefoon

View 5 Replies View Related

Transaction Log Backup

Apr 11, 2001

Hi

I have a full backup and transaction log backup strategy for my test server.
My transaction log backup is failing as some user must have run some nonlogged operation. Is there any way to find out what is causing transaction log backup to fail?

Any hint would be appreciated.

View 1 Replies View Related

Transaction Log Backup

Sep 18, 2001

I have a problem w/ my Transaction Log Backup. The backup files continues to grow and grow and grow. I have created a new Transaction Log backup through EM, but instead of appending each backup to the existing backup file, I overwrite the existing backup file. My gut feeling is that this is not right. If it isn't, then how can I continue to backup my TL's w/o having the file growing at an astronomical pace?

I would appreciate your help

Chris

View 2 Replies View Related

Backup Transaction Log

Feb 9, 2001

Is there a possibility to recover a database up to the point of failure ?
I have a database with a primary datafile and a transaction logfile.
I have backup of the database and transaction log backups upto an hour before failure. But I also want to recover one hour data which is in the transaction log.
I have lost my primary datafile.

Is there a way to recover ?

How do I backup the transaction log before starting restore ?

Thanks,
Bala

View 1 Replies View Related

Transaction Log Backup

Feb 2, 2001

Hi friends,
I have set up the Transaction Log backup on one server he was running fine for few hour later he failed for two times and then after full backup it is running fine.
Can any one of shed some light on this issue.
Error:
Cannot allow BACKUP LOG because file 'ZTVData' has been subjected to nonlogged updates and cannot be rolled forward. Perform a full database, or differential database, backup. [SQLSTATE 42000] (Error 4213) Backup or restore operation terminating abnormally. [SQLSTATE 42000] (Error 3013). The step failed.

Thank You,
Paul T

View 2 Replies View Related

Transaction Log Backup

Aug 26, 1999

Hi!
Does the command,
backup log <database name> to <backup device name>
clear the inactive portions of the transaction log?

Praveena

View 1 Replies View Related

Transaction Log Backup

Jun 9, 1999

I've set up 4 database maintenance plans for my databases. 1 for all system databases, and the other three for specific databases. they back up to a network drive on another computer.

The plans are set up to do complete backups every day and then transaction log backups every 15 minutes.

The complete backups work fine. They all create the backups on the network drive. The transaction log backups are only created for one of the databases though. All the others report "successful completion" but they don't actually create the backup file. I looked at the report created and it never has a step that backs up the transaction log. I compared the T-SQL code from the one transaction backup job that works to one that doesn't and all the commands are exactly the same (aside from different directories to save in to, job numbers, etc).

Does anyone have any idea what is going on? I've deleted the maintenance plans and recreated them to no avail. I've also created an on the side differential backup that works as well.

Any help would be appreciated

Bob

View 1 Replies View Related

Transaction Log Backup

Feb 21, 2001

I am using ArcserveIT 2000 SQL Agent to backup my SQL Server 7.0 db. I perform a full backup (with archive on) every day. ArcserveIT backsup both database and transaction log files. 'Truncate log on chkpt' is set to False in the databases. If I don't use SQL server's backup command with trunc. log on chkpt to true, will the transaction log file ever get trimmed? Does a third party backup utility like ArcserveIT will do something similar to 'backup command' in SQL server 7.
Anyone using ArcserveIT SQL Server 7.0 Agent, please comment.
Thanks

View 2 Replies View Related

Transaction Log Backup

Mar 15, 2004

Good afternoon,

Has anyone ever had an issue with a Transaction Log being backed up but not truncating? We’ve been having trouble with this and now have to truncate the log manually. Any information at this point will be useful. Thank you.

View 2 Replies View Related

When & How To Take Transaction Log Backup.

Oct 3, 2001

Hi,
Can anybody help me in,
When to take backup of transaction log and how to schedule it?

My database is in Full recovery mode with two log files.
I am doing mass insertion, then i am getting the following error
"The log file for database 'nags' is full. Back up the transaction log for the database to free up some log space."
I have taken backup of transaction log. now also it is giving the same error.

Any suggestions how to handle to this situation, to prevent the above error.


Thanks in advance.
Nageswararao.

View 1 Replies View Related

Backup Transaction Log

May 11, 2007

What is the proper way to backup a transaction log for a database whose name contains a space. (I.E. DBname = Database Name). I am trying to execute a command, but it does not like the space in the database name. I have also tried wrapping the name in single quotes and parethesis to no avail.

View 2 Replies View Related

Transaction Log Backup

May 29, 2008

How often do you guys back up your trans logs, every 10mins, 30mins or hourly???

Just curious

View 12 Replies View Related

Transaction Log Backup

Mar 22, 2004

We have a couple of databases in same server, and I set up the job on SQL server agent for backup transactions, a few dbs log backup successful, but a few are always failed, no error message be given, only can check the report --- "Backup can not be performed on database 'Agrdev'. This sub task is ignored ....," I checked all db property and set up , couldn't find out what's going on. Did anyone can help me?

View 8 Replies View Related

Backup Transaction Log

May 11, 2004

Hi,
I have error when i backup the transaction log of master and msdb database.
I think there is an error because the model of this database is simple.
can i modify the model and write full ?

I have another question,
I have a db with 1 db file of 11Go, i have to create secondary files or not.

View 9 Replies View Related

Transaction Log Backup

Mar 25, 2008

Hi,
If i have enabled truncate log on checkpoint option then --

1. Can i take transaction log backup?
2. Can i use point-in-time recovery for the Datbase.

can somebody help me on this. please explain the concept also.


Thanks in advance.
-- Chetan

View 2 Replies View Related







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