According to BOL
<---
BACKUP LOG
Specifies a backup of the transaction log only. The log is backed up
from the last successfully executed LOG backup to the current end of
the log. Once the log is backed up, the space may be truncated when no
longer required by replication or active transactions.
--->
Does this mean I could do something else to truncate the log or is it
saying that the backup log command may truncate the log if it feels
like it?
I want ot get a log from a client site onto my server for analysis but
I want ot make absolute certain that my backing up the log on their
server won't truncate it there. 7 3911
Trevor
A backup of the transaction log will truncate the transaction log. All
completed transactions will be removed.
What are you planing to do with the transaction log? There is not a lot
you can do with out a matching database. As far as I am aware,
Lumigent's Log reader is the only product that can read the transaction
log.
Regards
John
Trevor Best wrote: According to BOL <--- BACKUP LOG Specifies a backup of the transaction log only. The log is backed up from the last successfully executed LOG backup to the current end of the log. Once the log is backed up, the space may be truncated when no longer required by replication or active transactions. --->
Does this mean I could do something else to truncate the log or is it saying that the backup log command may truncate the log if it feels like it?
I want ot get a log from a client site onto my server for analysis but I want ot make absolute certain that my backing up the log on their server won't truncate it there. jo************@ yahoo.co.uk wrote: Trevor
A backup of the transaction log will truncate the transaction log. All completed transactions will be removed.
What are you planing to do with the transaction log? There is not a lot you can do with out a matching database. As far as I am aware, Lumigent's Log reader is the only product that can read the transaction log.
Hi John, thanks for the reply.
I do intend to view the log, I'm using SQLLog Rescue from www.red-gate.com. I can connect to their server over a VPN but it took
hours to read the log and got a general network error during the
process. What I want to do is restore the database on my server c/w
logs so I can view them here.
I know I can grab the data files and attach them on my end but I would
have to wait until tonight when people are off line to free up the
files.
On 9 Jun 2006 02:35:01 -0700, Trevor Best wrote:
(snip) I want ot get a log from a client site onto my server for analysis but I want ot make absolute certain that my backing up the log on their server won't truncate it there.
Hi Trevor,
BACKUP LOG <databasename >
TO DISK = 'x:\y\z\logback up.bak'
WITH COPY_ONLY;
--
Hugo Kornelis, SQL Server MVP
"Hugo Kornelis" <hu**@perFact.R EMOVETHIS.info. INVALID> wrote in message
news:5h******** *************** *********@4ax.c om... On 9 Jun 2006 02:35:01 -0700, Trevor Best wrote:
(snip)I want ot get a log from a client site onto my server for analysis but I want ot make absolute certain that my backing up the log on their server won't truncate it there. Hi Trevor,
BACKUP LOG <databasename > TO DISK = 'x:\y\z\logback up.bak' WITH COPY_ONLY;
Is this a SQL 2005 specific command? I've never seen it before.
Very handy. -- Hugo Kornelis, SQL Server MVP
Greg D. Moore (Strider) (mo************ ****@greenms.co m) writes: "Hugo Kornelis" <hu**@perFact.R EMOVETHIS.info. INVALID> wrote in message news:5h******** *************** *********@4ax.c om... BACKUP LOG <databasename > TO DISK = 'x:\y\z\logback up.bak' WITH COPY_ONLY;
Is this a SQL 2005 specific command? I've never seen it before.
Yes, that's a new addition (which I neither I had noticed until Hugo
posted about it). It appears to be a "NO_TRUNCAT E light". That is,
NO_TRUNCATE also waives the requirement that the database should be
accessible etc and is mainly intended for emergency situations.
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se
Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinf...ons/books.mspx
On Sat, 10 Jun 2006 12:51:23 +0000 (UTC), Erland Sommarskog wrote: Greg D. Moore (Strider) (mo************ ****@greenms.co m) writes: "Hugo Kornelis" <hu**@perFact.R EMOVETHIS.info. INVALID> wrote in message news:5h******** *************** *********@4ax.c om... BACKUP LOG <databasename > TO DISK = 'x:\y\z\logback up.bak' WITH COPY_ONLY;
Is this a SQL 2005 specific command? I've never seen it before.
Yes, that's a new addition (which I neither I had noticed until Hugo posted about it). It appears to be a "NO_TRUNCAT E light". That is, NO_TRUNCATE also waives the requirement that the database should be accessible etc and is mainly intended for emergency situations.
Hi Erland,
That's right. The major advantage of COPY_ONLY over NO_TRUNCATE is (IMO)
that this option also works on full and incremental backups. It's a
great way to quickly get a backup of a DB to do some tests or
trouble-shooting on without disrupting the backup schema.
--
Hugo Kornelis, SQL Server MVP
"Hugo Kornelis" <hu**@perFact.R EMOVETHIS.info. INVALID> wrote in message
news:9j******** *************** *********@4ax.c om... On Sat, 10 Jun 2006 12:51:23 +0000 (UTC), Erland Sommarskog wrote:
Greg D. Moore (Strider) (mo************ ****@greenms.co m) writes: "Hugo Kornelis" <hu**@perFact.R EMOVETHIS.info. INVALID> wrote in message news:5h******** *************** *********@4ax.c om... BACKUP LOG <databasename > TO DISK = 'x:\y\z\logback up.bak' WITH COPY_ONLY;
Is this a SQL 2005 specific command? I've never seen it before. Yes, that's a new addition (which I neither I had noticed until Hugo posted about it). It appears to be a "NO_TRUNCAT E light". That is, NO_TRUNCATE also waives the requirement that the database should be accessible etc and is mainly intended for emergency situations.
Hi Erland,
That's right. The major advantage of COPY_ONLY over NO_TRUNCATE is (IMO) that this option also works on full and incremental backups. It's a great way to quickly get a backup of a DB to do some tests or trouble-shooting on without disrupting the backup schema.
Yeah, that's why I was thinking it would be so useful.
I'll have to keep it in mind for when we upgrade to SQL 2005.
(Still have to have THAT particular debate with the finance folks who pay
the bills. :-) -- Hugo Kornelis, SQL Server MVP This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: D. Buck |
last post by:
I have a MS SQL 2000 dB that is 3GB, the transaction log is about 2GB.
I do a full dB backup every night. My question is, shouldn't the
transaction log shrink down to next to nothing after a full dB backup?
D.
p8oust7eh+
|
by: JB |
last post by:
We have a SQL Server 7.0 database running with trunc. log on chkpt and
select into/bulkcopy checked and need to develop a backup strategy.
One of our DBAs insists that since the transaction log is being
truncated, we can't do a hot backup (a FULL backup in multiuser mode)
because if a transaction comes through during the backup it will leave
the backup in an inconsistent state. I'm skeptical, but I don't know
how SQL Server 7 avoids...
|
by: Thiko |
last post by:
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 TO WITH NOINIT ,
|
by: Matt |
last post by:
I run SQL Server 2000 and use thier database maintenance plans to
backup my databases. My questions is what happens if a change is being
made to a database table while a backup is running? Should I be locking
the databases before the backup begins?
Scenario:
1) Database Plan begins backup at 7:00 PM.
2) At 7:01 PM a web user updates their password while the backup is
taking place.
|
by: alwinkotiya |
last post by:
Hi all,
If I set recovery model SIMPLE then truncation of log files will be
automated , but I will lose
database changes made since the last backup was taken.
Is there any way to automate truncation of log file and
backup of database upto last change has been done????
Plz Help.
| |
by: Brian D |
last post by:
In MS SQL 2005 when you do a Full Backup does it also backup and
truncate the transaction logs or do I need to back the transaction
logs up separately?
Thanks.
Brian
|
by: David Greenberg |
last post by:
Hi
We usae Sql2000.
I'm setting up backups jobs and need advise.
When I run a backup of a database, does it automatically clean out the
transaction log ? For a complete backup ? for a differential backup ?
When would it be best to run a shrinkdatabase command ? Why would I want
to run the shrinkdatabase ?
Thnaks
David Greenberg
|
by: aj |
last post by:
SQL Server 2005 SP2
Using SSMS, I've just backed up my transaction log (which is around 314
megs) on a smallish database. I purposely generated a bunch of dummy
transactions to grow the trans log.
I scripted the action in SSMS, and it said this:
BACKUP LOG TO DISK = N'C:\data\test.trn' WITH NOFORMAT, INIT,
NAME = N'test-Transaction Log Backup', SKIP, NOREWIND, NOUNLOAD, STATS
|
by: Roger |
last post by:
backup log testdb with truncate_only
DBCC SHRINKFILE (testdb_log, 100) WITH NO_INFOMSGS
backup database testdb to disk = '\\DC01\Backups\DB01\testdb.bak' with
init
and does the shrinkfile command reduce the size of the ldf ?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |