Showing posts with label message. Show all posts
Showing posts with label message. Show all posts

Friday, March 30, 2012

log in failed for user [servername]\ASPNET

can anyone help me with this error message, i follow the instruction of someone in other forum, but i cant find where the SQL Server Enterprise manager is, i am using MSDE.One way To see SQL Server Enterprise manager is to install SQL server :)|||If you don't have Enterprise Manage, you can use the command-line utility OSQL that comes with SQL Server.

Go to the command prompt and type in:

osql -S [servername]\instancename -E -q

You will have a 1> prompt.

use yourdatabasename
go

EXEC sp_grantlogin '[servername]\ASPNET'
go

EXEC sp_grantdbaccess '[servername]\ASPNET''
go

You can also read this post by David Wier:Error Using Trusted Connection in DB Connection String. I don't recommend adding the ASPNET account as a db_owner, however, so I'd leave off that command at the end.

Terri

Wednesday, March 28, 2012

log full message

I have sql server database logs set to expand with no
limit. So why do I get a log full message in the server
log. Thanks, Steve B.Perhaps the log file grew and grew until it filled up the disk.
You will probably want to truncate the log and then shrink it in order =to reclaim the disk space.
-- Keith, SQL Server MVP
"Steve B" <Steve.Baiotto@.ercgroup.com> wrote in message =news:02c301c34a4d$64ae7d40$a501280a@.phx.gbl...
> I have sql server database logs set to expand with no > limit. So why do I get a log full message in the server > log. Thanks, Steve B. >sql

Monday, March 26, 2012

Log Files - How To Clean Up

I had received a message that my log file is full and it do not enable to me to do a database backup before free up disk space. How do i clean up de log file (_log.ldf)?check 'dbcc shrinkfile' in BOL,

dbcc shrinkfile('db_log',size,truncateonly)|||Thanks, mallier, but my _log.ldf is on another disk driver under mssql\data folder. After executing the command you wrote, i got a message 'not found in the system files'|||run this query to get the log name in ur db


select *from sysfiles
-- u will get log name from name column with extension '_Log'

--replace that name in 'db_Log'|||ok, mallier, excuse me again, but the _log.ldf is 18GB great yet. Some system table was updated after the last command you wrote, but i need clean that _log.ldf to free up space in the disk drive.|||put the database in simple recoverry mode. Checkpoint the database. Backup the database. open QA. run "sp_helpdb (dbname). Find the file number for the log. execute dbcc shrinkfile(<file number for the log.).

Log files

I am getting the error message ,
"Could not allocate space for object '(SYSTEM table id: -1021390423)' in
database 'TEMPDB' because the 'DEFAULT' filegroup is full."
when i run a select stmt. I am thinking it's because my log file is full.
Can you pls tell me what i am supposed to do now?Read the error message closely, as it explains the problem very well. The pr
oblem is the tempdb
database. It is not the transaction log for tempdb, it is the database files
. They are not large
enough, and sometimes autogrow doesn't grow fast enough for the space needed
by the query
processing. Either pre.allocate storage for tempdb, or tweak the query (look
at query plan, add
indexes, modify the SQL etc).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"PH" <PH@.discussions.microsoft.com> wrote in message
news:E381B423-F43B-4D94-9E4C-802BE97EEF97@.microsoft.com...
>I am getting the error message ,
> "Could not allocate space for object '(SYSTEM table id: -1021390423)' in
> database 'TEMPDB' because the 'DEFAULT' filegroup is full."
> when i run a select stmt. I am thinking it's because my log file is full.
> Can you pls tell me what i am supposed to do now?|||How do I make them grow?
"Tibor Karaszi" wrote:

> Read the error message closely, as it explains the problem very well. The
problem is the tempdb
> database. It is not the transaction log for tempdb, it is the database fil
es. They are not large
> enough, and sometimes autogrow doesn't grow fast enough for the space need
ed by the query
> processing. Either pre.allocate storage for tempdb, or tweak the query (lo
ok at query plan, add
> indexes, modify the SQL etc).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "PH" <PH@.discussions.microsoft.com> wrote in message
> news:E381B423-F43B-4D94-9E4C-802BE97EEF97@.microsoft.com...
>
>|||Should i go to properties,data files and increase the size for space
allocated? Pls reply. Thanks in advance.
"PH" wrote:
> How do I make them grow?
> "Tibor Karaszi" wrote:
>|||Yes.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"PH" <PH@.discussions.microsoft.com> wrote in message
news:BA24839D-8D6E-4263-999A-2CF015CFAAA0@.microsoft.com...
> Should i go to properties,data files and increase the size for space
> allocated? Pls reply. Thanks in advance.
> "PH" wrote:
>

Friday, March 23, 2012

Log File size increase

I have set up an alert for Percent log used and i get this message every now and then:

The SQL Server performance counter 'Percent Log Used' (instance 'TelehopBilling') of object 'SQLServer:Databases' is now above the threshold of 90.00 (the current value is 95.00).

My database settings are:

Transaction log files space allocated

file1 1 mb

file 2 3 mb

file 3 1201 mb

automatically grow file : not checked

auto shrink - off

shrinking of database thru auto task: twice a week.

Please guide what is the solution to this. Also suggest me a suitable database settings. This is a production database and the actual log file size is around 2 GB

Thanks,

Why you are using multiple files for Transaction log?

As you might not gain anything using this way, I would suggest to use only one file and set appropriate size to transaction log. At the same time do not waste the SQL resources by shrinking the log regularly. You need to consider the set of processess including day to day, scheduled jobs such as database maintenance tasks, any bulk insert jobs and during these processes it will have impact on size.

Also ensure to maintain the backup log schedule frequently to take care of virtual log size boundaries that will stop unprecedented growth during any process.

As of now your setup seems ok other than having multiple log files, also I don't understand what is the problem you have with this setup.

Monday, March 19, 2012

Log File Full -> Back up Transaction Log

Hi.
I get the following error message occassionally,
"The log file for database 'TSBASE' is full. Back up the transaction log for
the database to free up some log space."
I'll backup the transaction log, and the database immediately. But after a
while (a few weeks), the error comes out again.
Why is there such an error? It seems like no matter how large I assign the
size of the transaction log to be, I'll still get this error one day. How
occassionally do I need to backup the transaction log? Is backing up the
transaction log the only solution? Will it come to a day whereby the log file
gets really so full that even backing up won't solve the problem?
Thank you in advance.This is a multi-part message in MIME format.
--000300010805090603020106
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
You need to do a bit of reading on basic database technology & concepts.
A transaction log is a record of all change to a database. So, every
time you change a database in any way (changing, adding, deleting data,
building indexes, dropping tables, adding new users, etc., etc.) the
transaction log will grow. The transaction log is a *very *important
part of a production database server.
Typically DBAs backup their production logs very regularly. If you
don't and you have some kind of failure on your database server
necessitating recovery from a backup, then you're going to lose vast
amounts of data. For example, I backup the transaction logs for all my
production databases every 15 minutes (with a full backup nightly) so,
in theory, I lose at most 15 minutes worth of data in the case of a disk
failure or database corruption of some sort. That's a very common thing
to do and 15 minutes, while it suits my situation but may not be right
for others, is also quite a common log backup interval. Some backup
their logs more often (every 5 minutes or less). Others backup their
logs less frequently (once an hour, once a day, etc.)
Timing all depends on your overall backup strategy. You must have one
of these - this is important.
If you're not interested in keeping incremental changes to a database
and you simply want to do full backups periodically then you can
automatically truncate the transaction log on every checkpoint
(typically every 30-120 seconds). This will keep the log from growing
very large (only a couple minutes transactions will be recorded before
getting truncated). You do this in SQL Server by changing the *recovery
model* of the database to SIMPLE with the ALTER DATABASE statement as
follows:
ALTER DATABASE TSBASE set RECOVERY SIMPLE
However, this will invalidate the transaction log and you will not be
able to backup the transaction log while in SIMPLE recovery mode.
(Actually you can backup the transaction log while in this mode but the
backups will be useless for recovery purposes because the log on those
backups will be invalid.)
For more information on transaction logs you could start with SQL Books
Online:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_02_6xwz.asp
--
*mike hodgson* |/ database administrator/ | mallesons stephen jaques
*T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907
*E* mailto:mike.hodgson@.mallesons.nospam.com |* W* http://www.mallesons.com
wrytat wrote:
>Hi.
>I get the following error message occassionally,
>"The log file for database 'TSBASE' is full. Back up the transaction log for
>the database to free up some log space."
>I'll backup the transaction log, and the database immediately. But after a
>while (a few weeks), the error comes out again.
>Why is there such an error? It seems like no matter how large I assign the
>size of the transaction log to be, I'll still get this error one day. How
>occassionally do I need to backup the transaction log? Is backing up the
>transaction log the only solution? Will it come to a day whereby the log file
>gets really so full that even backing up won't solve the problem?
>Thank you in advance.
>
--000300010805090603020106
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>You need to do a bit of reading on basic database technology &
concepts.<br>
<br>
A transaction log is a record of all change to a database. So, every
time you change a database in any way (changing, adding, deleting data,
building indexes, dropping tables, adding new users, etc., etc.) the
transaction log will grow. The transaction log is a <b>very </b>important
part of a production database server.<br>
<br>
Typically DBAs backup their production logs very regularly. If you
don't and you have some kind of failure on your database server
necessitating recovery from a backup, then you're going to lose vast
amounts of data. For example, I backup the transaction logs for all my
production databases every 15 minutes (with a full backup nightly) so,
in theory, I lose at most 15 minutes worth of data in the case of a
disk failure or database corruption of some sort. That's a very common
thing to do and 15 minutes, while it suits my situation but may not be
right for others, is also quite a common log backup interval. Some
backup their logs more often (every 5 minutes or less). Others backup
their logs less frequently (once an hour, once a day, etc.)<br>
<br>
Timing all depends on your overall backup strategy. You must have one
of these - this is important.<br>
<br>
If you're not interested in keeping incremental changes to a database
and you simply want to do full backups periodically then you can
automatically truncate the transaction log on every checkpoint
(typically every 30-120 seconds). This will keep the log from growing
very large (only a couple minutes transactions will be recorded before
getting truncated). You do this in SQL Server by changing the <b>recovery
model</b> of the database to SIMPLE with the ALTER DATABASE statement
as follows:<br>
</tt>
<blockquote><tt>ALTER DATABASE TSBASE set RECOVERY SIMPLE<br>
</tt></blockquote>
<tt>However, this will invalidate the transaction log and you will not
be able to backup the transaction log while in SIMPLE recovery mode.Â
(Actually you can backup the transaction log while in this mode but the
backups will be useless for recovery purposes because the log on those
backups will be invalid.)<br>
<br>
For more information on transaction logs you could start with SQL Books
Online:<br>
<a class="moz-txt-link-freetext" href="http://links.10026.com/?link=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_02_6xwz.asp</a><br>">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_02_6xwz.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_02_6xwz.asp</a><br>
</tt>
<div class="moz-signature">
<title></title>
<meta http-equiv="Content-Type" content="text/html; ">
<p><span lang="en-au"><font face="Tahoma" size="2">--<br>
</font> </span><b><span lang="en-au"><font face="Tahoma" size="2">mike
hodgson</font></span></b><span lang="en-au"> <font face="Tahoma"
size="2">|</font><i><font face="Tahoma"> </font><font face="Tahoma"
size="2"> database administrator</font></i><font face="Tahoma" size="2">
| mallesons</font><font face="Tahoma"> </font><font face="Tahoma"
size="2">stephen</font><font face="Tahoma"> </font><font face="Tahoma"
size="2"> jaques</font><font face="Tahoma"><br>
</font><b><font face="Tahoma" size="2">T</font></b><font face="Tahoma"
size="2"> +61 (2) 9296 3668 |</font><b><font face="Tahoma"> </font><font
face="Tahoma" size="2"> F</font></b><font face="Tahoma" size="2"> +61
(2) 9296 3885 |</font><b><font face="Tahoma"> </font><font
face="Tahoma" size="2">M</font></b><font face="Tahoma" size="2"> +61
(408) 675 907</font><br>
<b><font face="Tahoma" size="2">E</font></b><font face="Tahoma" size="2">
<a href="http://links.10026.com/?link=mailto:mike.hodgson@.mallesons.nospam.com">
mailto:mike.hodgson@.mallesons.nospam.com</a> |</font><b><font
face="Tahoma"> </font><font face="Tahoma" size="2">W</font></b><font
face="Tahoma" size="2"> <a href="http://links.10026.com/?link=/">http://www.mallesons.com">
http://www.mallesons.com</a></font></span> </p>
</div>
<br>
<br>
wrytat wrote:
<blockquote cite="mid2629587A-6C8D-4A63-AB5E-ECAC182CDEAC@.microsoft.com"
type="cite">
<pre wrap="">Hi.
I get the following error message occassionally,
"The log file for database 'TSBASE' is full. Back up the transaction log for
the database to free up some log space."
I'll backup the transaction log, and the database immediately. But after a
while (a few weeks), the error comes out again.
Why is there such an error? It seems like no matter how large I assign the
size of the transaction log to be, I'll still get this error one day. How
occassionally do I need to backup the transaction log? Is backing up the
transaction log the only solution? Will it come to a day whereby the log file
gets really so full that even backing up won't solve the problem?
Thank you in advance.
</pre>
</blockquote>
</body>
</html>
--000300010805090603020106--|||Thank you for the explanation. Does backing up the transaction log reduce the
size of the log file then?
"Mike Hodgson" wrote:
> You need to do a bit of reading on basic database technology & concepts.
> A transaction log is a record of all change to a database. So, every
> time you change a database in any way (changing, adding, deleting data,
> building indexes, dropping tables, adding new users, etc., etc.) the
> transaction log will grow. The transaction log is a *very *important
> part of a production database server.
> Typically DBAs backup their production logs very regularly. If you
> don't and you have some kind of failure on your database server
> necessitating recovery from a backup, then you're going to lose vast
> amounts of data. For example, I backup the transaction logs for all my
> production databases every 15 minutes (with a full backup nightly) so,
> in theory, I lose at most 15 minutes worth of data in the case of a disk
> failure or database corruption of some sort. That's a very common thing
> to do and 15 minutes, while it suits my situation but may not be right
> for others, is also quite a common log backup interval. Some backup
> their logs more often (every 5 minutes or less). Others backup their
> logs less frequently (once an hour, once a day, etc.)
> Timing all depends on your overall backup strategy. You must have one
> of these - this is important.
> If you're not interested in keeping incremental changes to a database
> and you simply want to do full backups periodically then you can
> automatically truncate the transaction log on every checkpoint
> (typically every 30-120 seconds). This will keep the log from growing
> very large (only a couple minutes transactions will be recorded before
> getting truncated). You do this in SQL Server by changing the *recovery
> model* of the database to SIMPLE with the ALTER DATABASE statement as
> follows:
> ALTER DATABASE TSBASE set RECOVERY SIMPLE
> However, this will invalidate the transaction log and you will not be
> able to backup the transaction log while in SIMPLE recovery mode.
> (Actually you can backup the transaction log while in this mode but the
> backups will be useless for recovery purposes because the log on those
> backups will be invalid.)
> For more information on transaction logs you could start with SQL Books
> Online:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_02_6xwz.asp
> --
> *mike hodgson* |/ database administrator/ | mallesons stephen jaques
> *T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907
> *E* mailto:mike.hodgson@.mallesons.nospam.com |* W* http://www.mallesons.com
>
> wrytat wrote:
> >Hi.
> >
> >I get the following error message occassionally,
> >"The log file for database 'TSBASE' is full. Back up the transaction log for
> >the database to free up some log space."
> >
> >I'll backup the transaction log, and the database immediately. But after a
> >while (a few weeks), the error comes out again.
> >
> >Why is there such an error? It seems like no matter how large I assign the
> >size of the transaction log to be, I'll still get this error one day. How
> >occassionally do I need to backup the transaction log? Is backing up the
> >transaction log the only solution? Will it come to a day whereby the log file
> >gets really so full that even backing up won't solve the problem?
> >
> >Thank you in advance.
> >
> >
>|||No. It just means the space can be re-used. It's not a good idea to
keep shrinking the transaction log because shrinking per se won't
reduce the storage requirement and auto-growing it again is a very
expensive operation. The way to control log file usage is to perform
regular transaction log backups and allocate a fixed, sustainable size
to the log.
--
David Portas
SQL Server MVP
--|||Yes Sir, Its not advisable to use
dbcc shrinkfile
or
backup log 'dbname' with truncate_only -- Will truncate Log File
but as if problem is running out of space then at this moment it need to
shrink the file ?!! M i right ?
"David Portas" wrote:
> No. It just means the space can be re-used. It's not a good idea to
> keep shrinking the transaction log because shrinking per se won't
> reduce the storage requirement and auto-growing it again is a very
> expensive operation. The way to control log file usage is to perform
> regular transaction log backups and allocate a fixed, sustainable size
> to the log.
> --
> David Portas
> SQL Server MVP
> --
>|||This is a multi-part message in MIME format.
--000303070709010108040507
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
It's only running out of disk space because the original poster never
backs up the transaction log. If he just sets up a backup scheduled (or
sets the recovery mode to simple) then he shouldn't have any worries.
--
*mike hodgson* |/ database administrator/ | mallesons stephen jaques
*T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907
*E* mailto:mike.hodgson@.mallesons.nospam.com |* W* http://www.mallesons.com
Hemant Goswami wrote:
>Yes Sir, Its not advisable to use
>dbcc shrinkfile
>or
>backup log 'dbname' with truncate_only -- Will truncate Log File
>but as if problem is running out of space then at this moment it need to
>shrink the file ?!! M i right ?
>"David Portas" wrote:
>
>>No. It just means the space can be re-used. It's not a good idea to
>>keep shrinking the transaction log because shrinking per se won't
>>reduce the storage requirement and auto-growing it again is a very
>>expensive operation. The way to control log file usage is to perform
>>regular transaction log backups and allocate a fixed, sustainable size
>>to the log.
>>--
>>David Portas
>>SQL Server MVP
>>--
>>
>>
--000303070709010108040507
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>It's only running out of disk space because the original poster
never backs up the transaction log. If he just sets up a backup
scheduled (or sets the recovery mode to simple) then he shouldn't have
any worries.</tt><br>
<div class="moz-signature">
<title></title>
<meta http-equiv="Content-Type" content="text/html; ">
<p><span lang="en-au"><font face="Tahoma" size="2">--<br>
</font> </span><b><span lang="en-au"><font face="Tahoma" size="2">mike
hodgson</font></span></b><span lang="en-au"> <font face="Tahoma"
size="2">|</font><i><font face="Tahoma"> </font><font face="Tahoma"
size="2"> database administrator</font></i><font face="Tahoma" size="2">
| mallesons</font><font face="Tahoma"> </font><font face="Tahoma"
size="2">stephen</font><font face="Tahoma"> </font><font face="Tahoma"
size="2"> jaques</font><font face="Tahoma"><br>
</font><b><font face="Tahoma" size="2">T</font></b><font face="Tahoma"
size="2"> +61 (2) 9296 3668 |</font><b><font face="Tahoma"> </font><font
face="Tahoma" size="2"> F</font></b><font face="Tahoma" size="2"> +61
(2) 9296 3885 |</font><b><font face="Tahoma"> </font><font
face="Tahoma" size="2">M</font></b><font face="Tahoma" size="2"> +61
(408) 675 907</font><br>
<b><font face="Tahoma" size="2">E</font></b><font face="Tahoma" size="2">
<a href="http://links.10026.com/?link=mailto:mike.hodgson@.mallesons.nospam.com">
mailto:mike.hodgson@.mallesons.nospam.com</a> |</font><b><font
face="Tahoma"> </font><font face="Tahoma" size="2">W</font></b><font
face="Tahoma" size="2"> <a href="http://links.10026.com/?link=/">http://www.mallesons.com">
http://www.mallesons.com</a></font></span> </p>
</div>
<br>
<br>
Hemant Goswami wrote:
<blockquote cite="mid70310EFD-8DFC-4212-A588-EF601607BD2E@.microsoft.com"
type="cite">
<pre wrap="">Yes Sir, Its not advisable to use
dbcc shrinkfile
or
backup log 'dbname' with truncate_only -- Will truncate Log File
but as if problem is running out of space then at this moment it need to
shrink the file ?!! M i right ?
"David Portas" wrote:
</pre>
<blockquote type="cite">
<pre wrap="">No. It just means the space can be re-used. It's not a good idea to
keep shrinking the transaction log because shrinking per se won't
reduce the storage requirement and auto-growing it again is a very
expensive operation. The way to control log file usage is to perform
regular transaction log backups and allocate a fixed, sustainable size
to the log.
--
David Portas
SQL Server MVP
--
</pre>
</blockquote>
</blockquote>
</body>
</html>
--000303070709010108040507--|||This is a multi-part message in MIME format.
--=_NextPart_000_0101_01C571B2.66267180
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable
I agree with Mike, that if you have a proper backup strategy, the =problem should never occour. Ther are cases though where I feel it's ok =to truncate the log file, and that's if there has been some unususal =activity in the database. If you e.g. has merged 2 databases, that might =have made the logfile grow, but since this might be a "once in a =lifetime" thing that most likely won't happen again, it might be ok to =tshrink the logfile back to a decent size.
Regards
Steen
"Mike Hodgson" <mike.hodgson@.mallesons.nospam.com> skrev i en =meddelelse news:eBnOiOZcFHA.3712@.TK2MSFTNGP12.phx.gbl...
It's only running out of disk space because the original poster never =backs up the transaction log. If he just sets up a backup scheduled (or =sets the recovery mode to simple) then he shouldn't have any worries.
--
mike hodgson | database administrator | mallesons stephen jaques
T +61 (2) 9296 3668 | F +61 (2) 9296 3885 | M +61 (408) 675 907
E mailto:mike.hodgson@.mallesons.nospam.com | W =http://www.mallesons.com=20
Hemant Goswami wrote: Yes Sir, Its not advisable to use
dbcc shrinkfile or
backup log 'dbname' with truncate_only -- Will truncate Log File
but as if problem is running out of space then at this moment it need to =
shrink the file ?!! M i right ?
"David Portas" wrote:
No. It just means the space can be re-used. It's not a good idea to
keep shrinking the transaction log because shrinking per se won't
reduce the storage requirement and auto-growing it again is a very
expensive operation. The way to control log file usage is to perform
regular transaction log backups and allocate a fixed, sustainable size
to the log.
-- David Portas SQL Server MVP --
--=_NextPart_000_0101_01C571B2.66267180
Content-Type: text/html;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable
=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

I agree with Mike, that if you have a =proper backup strategy, the problem should never occour. Ther are cases though where I =feel it's ok to truncate the log file, and that's if there has been some =unususal activity in the database. If you e.g. has merged 2 databases, that might =have made the logfile grow, but since this might be a "once in a lifetime" =thing that most likely won't happen again, it might be ok to tshrink the logfile =back to a decent size.
Regards
Steen
"Mike Hodgson" skrev i en meddelelse news:eBnOiOZcFHA.3712=@.TK2MSFTNGP12.phx.gbl...It's only running out of disk space because the original poster never backs =up the transaction log. If he just sets up a backup scheduled (or sets =the recovery mode to simple) then he shouldn't have any worries.
--mike =hodgson | database =administrator | mallesons =stephen jaquesT +61 (2) 9296 3668 | F +61 (2) 9296 3885 | M +61 (408) 675 907E mailto:mike.hodgson@.mal=lesons.nospam.com | W http://www.mallesons.com Hemant Goswami wrote: Yes Sir, Its not advisable to use
dbcc shrinkfile or
backup log 'dbname' with truncate_only -- Will truncate Log File
but as if problem is running out of space then at this moment it need to =shrink the file ?!! M i right ?
"David Portas" wrote:
No. It just means the space =can be re-used. It's not a good idea to
keep shrinking the transaction log because shrinking per se won't
reduce the storage requirement and auto-growing it again is a very
expensive operation. The way to control log file usage is to perform
regular transaction log backups and allocate a fixed, sustainable size
to the log.
-- David Portas SQL Server MVP --


--=_NextPart_000_0101_01C571B2.66267180--

Log File Full -> Back up Transaction Log

Hi.
I get the following error message occassionally,
"The log file for database 'TSBASE' is full. Back up the transaction log for
the database to free up some log space."
I'll backup the transaction log, and the database immediately. But after a
while (a few weeks), the error comes out again.
Why is there such an error? It seems like no matter how large I assign the
size of the transaction log to be, I'll still get this error one day. How
occassionally do I need to backup the transaction log? Is backing up the
transaction log the only solution? Will it come to a day whereby the log fil
e
gets really so full that even backing up won't solve the problem?
Thank you in advance.You need to do a bit of reading on basic database technology & concepts.
A transaction log is a record of all change to a database. So, every
time you change a database in any way (changing, adding, deleting data,
building indexes, dropping tables, adding new users, etc., etc.) the
transaction log will grow. The transaction log is a *very *important
part of a production database server.
Typically DBAs backup their production logs very regularly. If you
don't and you have some kind of failure on your database server
necessitating recovery from a backup, then you're going to lose vast
amounts of data. For example, I backup the transaction logs for all my
production databases every 15 minutes (with a full backup nightly) so,
in theory, I lose at most 15 minutes worth of data in the case of a disk
failure or database corruption of some sort. That's a very common thing
to do and 15 minutes, while it suits my situation but may not be right
for others, is also quite a common log backup interval. Some backup
their logs more often (every 5 minutes or less). Others backup their
logs less frequently (once an hour, once a day, etc.)
Timing all depends on your overall backup strategy. You must have one
of these - this is important.
If you're not interested in keeping incremental changes to a database
and you simply want to do full backups periodically then you can
automatically truncate the transaction log on every checkpoint
(typically every 30-120 seconds). This will keep the log from growing
very large (only a couple minutes transactions will be recorded before
getting truncated). You do this in SQL Server by changing the *recovery
model* of the database to SIMPLE with the ALTER DATABASE statement as
follows:
ALTER DATABASE TSBASE set RECOVERY SIMPLE
However, this will invalidate the transaction log and you will not be
able to backup the transaction log while in SIMPLE recovery mode.
(Actually you can backup the transaction log while in this mode but the
backups will be useless for recovery purposes because the log on those
backups will be invalid.)
For more information on transaction logs you could start with SQL Books
Online:
http://msdn.microsoft.com/library/d...>
_02_6xwz.asp
*mike hodgson* |/ database administrator/ | mallesons stephen jaques
*T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907
*E* mailto:mike.hodgson@.mallesons.nospam.com |* W* http://www.mallesons.com
wrytat wrote:

>Hi.
>I get the following error message occassionally,
>"The log file for database 'TSBASE' is full. Back up the transaction log fo
r
>the database to free up some log space."
>I'll backup the transaction log, and the database immediately. But after a
>while (a few weeks), the error comes out again.
>Why is there such an error? It seems like no matter how large I assign the
>size of the transaction log to be, I'll still get this error one day. How
>occassionally do I need to backup the transaction log? Is backing up the
>transaction log the only solution? Will it come to a day whereby the log fi
le
>gets really so full that even backing up won't solve the problem?
>Thank you in advance.
>|||Thank you for the explanation. Does backing up the transaction log reduce th
e
size of the log file then?
"Mike Hodgson" wrote:

> You need to do a bit of reading on basic database technology & concepts.
> A transaction log is a record of all change to a database. So, every
> time you change a database in any way (changing, adding, deleting data,
> building indexes, dropping tables, adding new users, etc., etc.) the
> transaction log will grow. The transaction log is a *very *important
> part of a production database server.
> Typically DBAs backup their production logs very regularly. If you
> don't and you have some kind of failure on your database server
> necessitating recovery from a backup, then you're going to lose vast
> amounts of data. For example, I backup the transaction logs for all my
> production databases every 15 minutes (with a full backup nightly) so,
> in theory, I lose at most 15 minutes worth of data in the case of a disk
> failure or database corruption of some sort. That's a very common thing
> to do and 15 minutes, while it suits my situation but may not be right
> for others, is also quite a common log backup interval. Some backup
> their logs more often (every 5 minutes or less). Others backup their
> logs less frequently (once an hour, once a day, etc.)
> Timing all depends on your overall backup strategy. You must have one
> of these - this is important.
> If you're not interested in keeping incremental changes to a database
> and you simply want to do full backups periodically then you can
> automatically truncate the transaction log on every checkpoint
> (typically every 30-120 seconds). This will keep the log from growing
> very large (only a couple minutes transactions will be recorded before
> getting truncated). You do this in SQL Server by changing the *recovery
> model* of the database to SIMPLE with the ALTER DATABASE statement as
> follows:
> ALTER DATABASE TSBASE set RECOVERY SIMPLE
> However, this will invalidate the transaction log and you will not be
> able to backup the transaction log while in SIMPLE recovery mode.
> (Actually you can backup the transaction log while in this mode but the
> backups will be useless for recovery purposes because the log on those
> backups will be invalid.)
> For more information on transaction logs you could start with SQL Books
> Online:
> http://msdn.microsoft.com/library/d...
es_02_6xwz.asp
> --
> *mike hodgson* |/ database administrator/ | mallesons stephen jaques
> *T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907
> *E* mailto:mike.hodgson@.mallesons.nospam.com |* W* [url]http://www.mallesons.com[/url
]
>
> wrytat wrote:
>
>|||No. It just means the space can be re-used. It's not a good idea to
keep shrinking the transaction log because shrinking per se won't
reduce the storage requirement and auto-growing it again is a very
expensive operation. The way to control log file usage is to perform
regular transaction log backups and allocate a fixed, sustainable size
to the log.
David Portas
SQL Server MVP
--|||Yes Sir, Its not advisable to use
dbcc shrinkfile
or
backup log 'dbname' with truncate_only -- Will truncate Log File
but as if problem is running out of space then at this moment it need to
shrink the file ?!! M i right ?
"David Portas" wrote:

> No. It just means the space can be re-used. It's not a good idea to
> keep shrinking the transaction log because shrinking per se won't
> reduce the storage requirement and auto-growing it again is a very
> expensive operation. The way to control log file usage is to perform
> regular transaction log backups and allocate a fixed, sustainable size
> to the log.
> --
> David Portas
> SQL Server MVP
> --
>|||It's only running out of disk space because the original poster never
backs up the transaction log. If he just sets up a backup scheduled (or
sets the recovery mode to simple) then he shouldn't have any worries.
*mike hodgson* |/ database administrator/ | mallesons stephen jaques
*T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907
*E* mailto:mike.hodgson@.mallesons.nospam.com |* W* http://www.mallesons.com
Hemant Goswami wrote:
[vbcol=seagreen]
>Yes Sir, Its not advisable to use
>dbcc shrinkfile
>or
>backup log 'dbname' with truncate_only -- Will truncate Log File
>but as if problem is running out of space then at this moment it need to
>shrink the file ?!! M i right ?
>"David Portas" wrote:
>
>|||I agree with Mike, that if you have a proper backup strategy, the problem sh
ould never occour. Ther are cases though where I feel it's ok to truncate th
e log file, and that's if there has been some unususal activity in the datab
ase. If you e.g. has merged 2 databases, that might have made the logfile gr
ow, but since this might be a "once in a lifetime" thing that most likely wo
n't happen again, it might be ok to tshrink the logfile back to a decent siz
e.
Regards
Steen
"Mike Hodgson" <mike.hodgson@.mallesons.nospam.com> skrev i en meddelelse new
s:eBnOiOZcFHA.3712@.TK2MSFTNGP12.phx.gbl...
It's only running out of disk space because the original poster never backs
up the transaction log. If he just sets up a backup scheduled (or sets the
recovery mode to simple) then he shouldn't have any worries.
mike hodgson | database administrator | mallesons stephen jaques
T +61 (2) 9296 3668 | F +61 (2) 9296 3885 | M +61 (408) 675 907
E mailto:mike.hodgson@.mallesons.nospam.com | W http://www.mallesons.com
Hemant Goswami wrote:
Yes Sir, Its not advisable to use
dbcc shrinkfile
or
backup log 'dbname' with truncate_only -- Will truncate Log File
but as if problem is running out of space then at this moment it need to
shrink the file ?!! M i right ?
"David Portas" wrote:
No. It just means the space can be re-used. It's not a good idea to
keep shrinking the transaction log because shrinking per se won't
reduce the storage requirement and auto-growing it again is a very
expensive operation. The way to control log file usage is to perform
regular transaction log backups and allocate a fixed, sustainable size
to the log.
--
David Portas
SQL Server MVP
--

Log File Full -> Back up Transaction Log

Hi.
I get the following error message occassionally,
"The log file for database 'TSBASE' is full. Back up the transaction log for
the database to free up some log space."
I'll backup the transaction log, and the database immediately. But after a
while (a few weeks), the error comes out again.
Why is there such an error? It seems like no matter how large I assign the
size of the transaction log to be, I'll still get this error one day. How
occassionally do I need to backup the transaction log? Is backing up the
transaction log the only solution? Will it come to a day whereby the log file
gets really so full that even backing up won't solve the problem?
Thank you in advance.
You need to do a bit of reading on basic database technology & concepts.
A transaction log is a record of all change to a database. So, every
time you change a database in any way (changing, adding, deleting data,
building indexes, dropping tables, adding new users, etc., etc.) the
transaction log will grow. The transaction log is a *very *important
part of a production database server.
Typically DBAs backup their production logs very regularly. If you
don't and you have some kind of failure on your database server
necessitating recovery from a backup, then you're going to lose vast
amounts of data. For example, I backup the transaction logs for all my
production databases every 15 minutes (with a full backup nightly) so,
in theory, I lose at most 15 minutes worth of data in the case of a disk
failure or database corruption of some sort. That's a very common thing
to do and 15 minutes, while it suits my situation but may not be right
for others, is also quite a common log backup interval. Some backup
their logs more often (every 5 minutes or less). Others backup their
logs less frequently (once an hour, once a day, etc.)
Timing all depends on your overall backup strategy. You must have one
of these - this is important.
If you're not interested in keeping incremental changes to a database
and you simply want to do full backups periodically then you can
automatically truncate the transaction log on every checkpoint
(typically every 30-120 seconds). This will keep the log from growing
very large (only a couple minutes transactions will be recorded before
getting truncated). You do this in SQL Server by changing the *recovery
model* of the database to SIMPLE with the ALTER DATABASE statement as
follows:
ALTER DATABASE TSBASE set RECOVERY SIMPLE
However, this will invalidate the transaction log and you will not be
able to backup the transaction log while in SIMPLE recovery mode.
(Actually you can backup the transaction log while in this mode but the
backups will be useless for recovery purposes because the log on those
backups will be invalid.)
For more information on transaction logs you could start with SQL Books
Online:
http://msdn.microsoft.com/library/de...es_02_6xwz.asp
*mike hodgson* |/ database administrator/ | mallesons stephen jaques
*T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907
*E* mailto:mike.hodgson@.mallesons.nospam.com |* W* http://www.mallesons.com
wrytat wrote:

>Hi.
>I get the following error message occassionally,
>"The log file for database 'TSBASE' is full. Back up the transaction log for
>the database to free up some log space."
>I'll backup the transaction log, and the database immediately. But after a
>while (a few weeks), the error comes out again.
>Why is there such an error? It seems like no matter how large I assign the
>size of the transaction log to be, I'll still get this error one day. How
>occassionally do I need to backup the transaction log? Is backing up the
>transaction log the only solution? Will it come to a day whereby the log file
>gets really so full that even backing up won't solve the problem?
>Thank you in advance.
>
|||Thank you for the explanation. Does backing up the transaction log reduce the
size of the log file then?
"Mike Hodgson" wrote:

> You need to do a bit of reading on basic database technology & concepts.
> A transaction log is a record of all change to a database. So, every
> time you change a database in any way (changing, adding, deleting data,
> building indexes, dropping tables, adding new users, etc., etc.) the
> transaction log will grow. The transaction log is a *very *important
> part of a production database server.
> Typically DBAs backup their production logs very regularly. If you
> don't and you have some kind of failure on your database server
> necessitating recovery from a backup, then you're going to lose vast
> amounts of data. For example, I backup the transaction logs for all my
> production databases every 15 minutes (with a full backup nightly) so,
> in theory, I lose at most 15 minutes worth of data in the case of a disk
> failure or database corruption of some sort. That's a very common thing
> to do and 15 minutes, while it suits my situation but may not be right
> for others, is also quite a common log backup interval. Some backup
> their logs more often (every 5 minutes or less). Others backup their
> logs less frequently (once an hour, once a day, etc.)
> Timing all depends on your overall backup strategy. You must have one
> of these - this is important.
> If you're not interested in keeping incremental changes to a database
> and you simply want to do full backups periodically then you can
> automatically truncate the transaction log on every checkpoint
> (typically every 30-120 seconds). This will keep the log from growing
> very large (only a couple minutes transactions will be recorded before
> getting truncated). You do this in SQL Server by changing the *recovery
> model* of the database to SIMPLE with the ALTER DATABASE statement as
> follows:
> ALTER DATABASE TSBASE set RECOVERY SIMPLE
> However, this will invalidate the transaction log and you will not be
> able to backup the transaction log while in SIMPLE recovery mode.
> (Actually you can backup the transaction log while in this mode but the
> backups will be useless for recovery purposes because the log on those
> backups will be invalid.)
> For more information on transaction logs you could start with SQL Books
> Online:
> http://msdn.microsoft.com/library/de...es_02_6xwz.asp
> --
> *mike hodgson* |/ database administrator/ | mallesons stephen jaques
> *T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907
> *E* mailto:mike.hodgson@.mallesons.nospam.com |* W* http://www.mallesons.com
>
> wrytat wrote:
>
|||No. It just means the space can be re-used. It's not a good idea to
keep shrinking the transaction log because shrinking per se won't
reduce the storage requirement and auto-growing it again is a very
expensive operation. The way to control log file usage is to perform
regular transaction log backups and allocate a fixed, sustainable size
to the log.
David Portas
SQL Server MVP
|||Yes Sir, Its not advisable to use
dbcc shrinkfile
or
backup log 'dbname' with truncate_only -- Will truncate Log File
but as if problem is running out of space then at this moment it need to
shrink the file ?!! M i right ?
"David Portas" wrote:

> No. It just means the space can be re-used. It's not a good idea to
> keep shrinking the transaction log because shrinking per se won't
> reduce the storage requirement and auto-growing it again is a very
> expensive operation. The way to control log file usage is to perform
> regular transaction log backups and allocate a fixed, sustainable size
> to the log.
> --
> David Portas
> SQL Server MVP
> --
>
|||It's only running out of disk space because the original poster never
backs up the transaction log. If he just sets up a backup scheduled (or
sets the recovery mode to simple) then he shouldn't have any worries.
*mike hodgson* |/ database administrator/ | mallesons stephen jaques
*T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907
*E* mailto:mike.hodgson@.mallesons.nospam.com |* W* http://www.mallesons.com
Hemant Goswami wrote:
[vbcol=seagreen]
>Yes Sir, Its not advisable to use
>dbcc shrinkfile
>or
>backup log 'dbname' with truncate_only -- Will truncate Log File
>but as if problem is running out of space then at this moment it need to
>shrink the file ?!! M i right ?
>"David Portas" wrote:
>
|||I agree with Mike, that if you have a proper backup strategy, the problem should never occour. Ther are cases though where I feel it's ok to truncate the log file, and that's if there has been some unususal activity in the database. If you e.g. has merged 2 databases, that might have made the logfile grow, but since this might be a "once in a lifetime" thing that most likely won't happen again, it might be ok to tshrink the logfile back to a decent size.
Regards
Steen
"Mike Hodgson" <mike.hodgson@.mallesons.nospam.com> skrev i en meddelelse news:eBnOiOZcFHA.3712@.TK2MSFTNGP12.phx.gbl...
It's only running out of disk space because the original poster never backs up the transaction log. If he just sets up a backup scheduled (or sets the recovery mode to simple) then he shouldn't have any worries.
mike hodgson | database administrator | mallesons stephen jaques
T +61 (2) 9296 3668 | F +61 (2) 9296 3885 | M +61 (408) 675 907
E mailto:mike.hodgson@.mallesons.nospam.com | W http://www.mallesons.com
Hemant Goswami wrote:
Yes Sir, Its not advisable to use
dbcc shrinkfile
or
backup log 'dbname' with truncate_only -- Will truncate Log File
but as if problem is running out of space then at this moment it need to
shrink the file ?!! M i right ?
"David Portas" wrote:
No. It just means the space can be re-used. It's not a good idea to
keep shrinking the transaction log because shrinking per se won't
reduce the storage requirement and auto-growing it again is a very
expensive operation. The way to control log file usage is to perform
regular transaction log backups and allocate a fixed, sustainable size
to the log.
David Portas
SQL Server MVP

log file for tempdb is full

I continue to get this message in event viewer for SQL Server 2000 "The log
file for database tempdb is full. Backup the transaction log for the
database to free up some log space."
How can I fix this problem?Check out this link
http://www.aspfaq.com/show.asp?id=2446
"Geoff" <cbsinc@.earthlink.net> wrote in message
news:FDgue.7507$hK3.787@.newsread3.news.pas.earthlink.net...
> I continue to get this message in event viewer for SQL Server 2000 "The
log
> file for database tempdb is full. Backup the transaction log for the
> database to free up some log space."
> How can I fix this problem?
>|||This indicates that you need to increaes the log file for a tempdb. The size
required depends on your application's use of tempdb.
--
Wei Xiao [MSFT]
SQL Server Storage Engine Development
http://blogs.msdn.com/weix
"Geoff" <cbsinc@.earthlink.net> wrote in message
news:FDgue.7507$hK3.787@.newsread3.news.pas.earthlink.net...
> I continue to get this message in event viewer for SQL Server 2000 "The
log
> file for database tempdb is full. Backup the transaction log for the
> database to free up some log space."
> How can I fix this problem?
>

log file for tempdb is full

I continue to get this message in event viewer for SQL Server 2000 "The log
file for database tempdb is full. Backup the transaction log for the
database to free up some log space."
How can I fix this problem?Check out this link
http://www.aspfaq.com/show.asp?id=2446
"Geoff" <cbsinc@.earthlink.net> wrote in message
news:FDgue.7507$hK3.787@.newsread3.news.pas.earthlink.net...
> I continue to get this message in event viewer for SQL Server 2000 "The
log
> file for database tempdb is full. Backup the transaction log for the
> database to free up some log space."
> How can I fix this problem?
>|||This indicates that you need to increaes the log file for a tempdb. The size
required depends on your application's use of tempdb.
--
--
Wei Xiao [MSFT]
SQL Server Storage Engine Development
http://blogs.msdn.com/weix
"Geoff" <cbsinc@.earthlink.net> wrote in message
news:FDgue.7507$hK3.787@.newsread3.news.pas.earthlink.net...
> I continue to get this message in event viewer for SQL Server 2000 "The
log
> file for database tempdb is full. Backup the transaction log for the
> database to free up some log space."
> How can I fix this problem?
>

log file for tempdb is full

I continue to get this message in event viewer for SQL Server 2000 "The log
file for database tempdb is full. Backup the transaction log for the
database to free up some log space."
How can I fix this problem?
Check out this link
http://www.aspfaq.com/show.asp?id=2446
"Geoff" <cbsinc@.earthlink.net> wrote in message
news:FDgue.7507$hK3.787@.newsread3.news.pas.earthli nk.net...
> I continue to get this message in event viewer for SQL Server 2000 "The
log
> file for database tempdb is full. Backup the transaction log for the
> database to free up some log space."
> How can I fix this problem?
>
|||This indicates that you need to increaes the log file for a tempdb. The size
required depends on your application's use of tempdb.
--
Wei Xiao [MSFT]
SQL Server Storage Engine Development
http://blogs.msdn.com/weix
"Geoff" <cbsinc@.earthlink.net> wrote in message
news:FDgue.7507$hK3.787@.newsread3.news.pas.earthli nk.net...
> I continue to get this message in event viewer for SQL Server 2000 "The
log
> file for database tempdb is full. Backup the transaction log for the
> database to free up some log space."
> How can I fix this problem?
>

Monday, March 12, 2012

Log file for database "xxx" is full

I seen the error message "Log file for database xxx is full. backup the
transaction log for the database to free up some log space.",
but I already checked the automatically grow file and unrestricted file
growth, and the server has still near 2GB free space, why the error still
pop-up? I have set the By percent property of the File growth to 15, but in
fact what is the number means?
By percent property means that the file will grow by 15% each time it needs.
As to why it doesnt grow, did you check the windows side of things? Policies
and such limitations to file size.
MC
"kei" <kei@.discussions.microsoft.com> wrote in message
news:E36B16A3-2EB2-4D64-B7B2-E56F79CA9C2D@.microsoft.com...
>I seen the error message "Log file for database xxx is full. backup the
> transaction log for the database to free up some log space.",
> but I already checked the automatically grow file and unrestricted file
> growth, and the server has still near 2GB free space, why the error still
> pop-up? I have set the By percent property of the File growth to 15, but
> in
> fact what is the number means?
|||grow by 15%, but I don't know the x in x = x + 15%! what is the x come from?
I see the space allocated column is 110, is this means the file will grow by
110 * 15% each time?
"MC" wrote:

> By percent property means that the file will grow by 15% each time it needs.
> As to why it doesnt grow, did you check the windows side of things? Policies
> and such limitations to file size.
>
> MC
>
> "kei" <kei@.discussions.microsoft.com> wrote in message
> news:E36B16A3-2EB2-4D64-B7B2-E56F79CA9C2D@.microsoft.com...
>
>
|||No.
It will grow by x * 0.15 each time. So if you have 100, next value is 115,
after that is 115 + (115* 0.15)
MC
"kei" <kei@.discussions.microsoft.com> wrote in message
news:E0606C35-1C61-4509-98E7-6423BA79C173@.microsoft.com...[vbcol=seagreen]
> grow by 15%, but I don't know the x in x = x + 15%! what is the x come
> from?
> I see the space allocated column is 110, is this means the file will grow
> by
> 110 * 15% each time?
> "MC" wrote:
|||Oh, it was my question here, where is the value 100 come from? the value from
column "space allocated"?
"MC" wrote:

> No.
> It will grow by x * 0.15 each time. So if you have 100, next value is 115,
> after that is 115 + (115* 0.15)
> MC
> "kei" <kei@.discussions.microsoft.com> wrote in message
> news:E0606C35-1C61-4509-98E7-6423BA79C173@.microsoft.com...
>
>
|||Yes.
MC
"kei" <kei@.discussions.microsoft.com> wrote in message
news:AB9DCC9A-B2F1-40DF-8E4F-CC54F0736456@.microsoft.com...[vbcol=seagreen]
> Oh, it was my question here, where is the value 100 come from? the value
> from
> column "space allocated"?
> "MC" wrote:
|||kei wrote:[vbcol=seagreen]
> grow by 15%, but I don't know the x in x = x + 15%! what is the x come from?
> I see the space allocated column is 110, is this means the file will grow by
> 110 * 15% each time?
> "MC" wrote:
The problem can actually also occur if you server doesn't grow the log
file fast enough. If it happens quite often, I'd consider increasing the
log size manually and then expanding it with e.g. 50% or 100 %. By doing
this it will take a while before it has to grow again. You could also
try to set the "auto grow" option to grow e.g. 100 MB at the time rather
than a percentage.
You don't mention anything about your backup strategy, but it could be
that you need to backup you log file in order to re-use the space
already claimed by the log file.
Regards
Steen

Log file for database "xxx" is full

I seen the error message "Log file for database xxx is full. backup the
transaction log for the database to free up some log space.",
but I already checked the automatically grow file and unrestricted file
growth, and the server has still near 2GB free space, why the error still
pop-up? I have set the By percent property of the File growth to 15, but in
fact what is the number means?By percent property means that the file will grow by 15% each time it needs.
As to why it doesnt grow, did you check the windows side of things? Policies
and such limitations to file size.
MC
"kei" <kei@.discussions.microsoft.com> wrote in message
news:E36B16A3-2EB2-4D64-B7B2-E56F79CA9C2D@.microsoft.com...
>I seen the error message "Log file for database xxx is full. backup the
> transaction log for the database to free up some log space.",
> but I already checked the automatically grow file and unrestricted file
> growth, and the server has still near 2GB free space, why the error still
> pop-up? I have set the By percent property of the File growth to 15, but
> in
> fact what is the number means?|||grow by 15%, but I don't know the x in x = x + 15%! what is the x come from?
I see the space allocated column is 110, is this means the file will grow by
110 * 15% each time?
"MC" wrote:
> By percent property means that the file will grow by 15% each time it needs.
> As to why it doesnt grow, did you check the windows side of things? Policies
> and such limitations to file size.
>
> MC
>
> "kei" <kei@.discussions.microsoft.com> wrote in message
> news:E36B16A3-2EB2-4D64-B7B2-E56F79CA9C2D@.microsoft.com...
> >I seen the error message "Log file for database xxx is full. backup the
> > transaction log for the database to free up some log space.",
> > but I already checked the automatically grow file and unrestricted file
> > growth, and the server has still near 2GB free space, why the error still
> > pop-up? I have set the By percent property of the File growth to 15, but
> > in
> > fact what is the number means?
>
>|||No.
It will grow by x * 0.15 each time. So if you have 100, next value is 115,
after that is 115 + (115* 0.15)
MC
"kei" <kei@.discussions.microsoft.com> wrote in message
news:E0606C35-1C61-4509-98E7-6423BA79C173@.microsoft.com...
> grow by 15%, but I don't know the x in x = x + 15%! what is the x come
> from?
> I see the space allocated column is 110, is this means the file will grow
> by
> 110 * 15% each time?
> "MC" wrote:
>> By percent property means that the file will grow by 15% each time it
>> needs.
>> As to why it doesnt grow, did you check the windows side of things?
>> Policies
>> and such limitations to file size.
>>
>> MC
>>
>> "kei" <kei@.discussions.microsoft.com> wrote in message
>> news:E36B16A3-2EB2-4D64-B7B2-E56F79CA9C2D@.microsoft.com...
>> >I seen the error message "Log file for database xxx is full. backup the
>> > transaction log for the database to free up some log space.",
>> > but I already checked the automatically grow file and unrestricted file
>> > growth, and the server has still near 2GB free space, why the error
>> > still
>> > pop-up? I have set the By percent property of the File growth to 15,
>> > but
>> > in
>> > fact what is the number means?
>>|||Oh, it was my question here, where is the value 100 come from? the value from
column "space allocated"?
"MC" wrote:
> No.
> It will grow by x * 0.15 each time. So if you have 100, next value is 115,
> after that is 115 + (115* 0.15)
> MC
> "kei" <kei@.discussions.microsoft.com> wrote in message
> news:E0606C35-1C61-4509-98E7-6423BA79C173@.microsoft.com...
> > grow by 15%, but I don't know the x in x = x + 15%! what is the x come
> > from?
> > I see the space allocated column is 110, is this means the file will grow
> > by
> > 110 * 15% each time?
> >
> > "MC" wrote:
> >
> >> By percent property means that the file will grow by 15% each time it
> >> needs.
> >> As to why it doesnt grow, did you check the windows side of things?
> >> Policies
> >> and such limitations to file size.
> >>
> >>
> >> MC
> >>
> >>
> >> "kei" <kei@.discussions.microsoft.com> wrote in message
> >> news:E36B16A3-2EB2-4D64-B7B2-E56F79CA9C2D@.microsoft.com...
> >> >I seen the error message "Log file for database xxx is full. backup the
> >> > transaction log for the database to free up some log space.",
> >> > but I already checked the automatically grow file and unrestricted file
> >> > growth, and the server has still near 2GB free space, why the error
> >> > still
> >> > pop-up? I have set the By percent property of the File growth to 15,
> >> > but
> >> > in
> >> > fact what is the number means?
> >>
> >>
> >>
>
>|||Yes.
MC
"kei" <kei@.discussions.microsoft.com> wrote in message
news:AB9DCC9A-B2F1-40DF-8E4F-CC54F0736456@.microsoft.com...
> Oh, it was my question here, where is the value 100 come from? the value
> from
> column "space allocated"?
> "MC" wrote:
>> No.
>> It will grow by x * 0.15 each time. So if you have 100, next value is
>> 115,
>> after that is 115 + (115* 0.15)
>> MC
>> "kei" <kei@.discussions.microsoft.com> wrote in message
>> news:E0606C35-1C61-4509-98E7-6423BA79C173@.microsoft.com...
>> > grow by 15%, but I don't know the x in x = x + 15%! what is the x come
>> > from?
>> > I see the space allocated column is 110, is this means the file will
>> > grow
>> > by
>> > 110 * 15% each time?
>> >
>> > "MC" wrote:
>> >
>> >> By percent property means that the file will grow by 15% each time it
>> >> needs.
>> >> As to why it doesnt grow, did you check the windows side of things?
>> >> Policies
>> >> and such limitations to file size.
>> >>
>> >>
>> >> MC
>> >>
>> >>
>> >> "kei" <kei@.discussions.microsoft.com> wrote in message
>> >> news:E36B16A3-2EB2-4D64-B7B2-E56F79CA9C2D@.microsoft.com...
>> >> >I seen the error message "Log file for database xxx is full. backup
>> >> >the
>> >> > transaction log for the database to free up some log space.",
>> >> > but I already checked the automatically grow file and unrestricted
>> >> > file
>> >> > growth, and the server has still near 2GB free space, why the error
>> >> > still
>> >> > pop-up? I have set the By percent property of the File growth to 15,
>> >> > but
>> >> > in
>> >> > fact what is the number means?
>> >>
>> >>
>> >>
>>|||kei wrote:
> grow by 15%, but I don't know the x in x = x + 15%! what is the x come from?
> I see the space allocated column is 110, is this means the file will grow by
> 110 * 15% each time?
> "MC" wrote:
>> By percent property means that the file will grow by 15% each time it needs.
>> As to why it doesnt grow, did you check the windows side of things? Policies
>> and such limitations to file size.
>>
>> MC
>>
>> "kei" <kei@.discussions.microsoft.com> wrote in message
>> news:E36B16A3-2EB2-4D64-B7B2-E56F79CA9C2D@.microsoft.com...
>> I seen the error message "Log file for database xxx is full. backup the
>> transaction log for the database to free up some log space.",
>> but I already checked the automatically grow file and unrestricted file
>> growth, and the server has still near 2GB free space, why the error still
>> pop-up? I have set the By percent property of the File growth to 15, but
>> in
>> fact what is the number means?
>>
The problem can actually also occur if you server doesn't grow the log
file fast enough. If it happens quite often, I'd consider increasing the
log size manually and then expanding it with e.g. 50% or 100 %. By doing
this it will take a while before it has to grow again. You could also
try to set the "auto grow" option to grow e.g. 100 MB at the time rather
than a percentage.
You don't mention anything about your backup strategy, but it could be
that you need to backup you log file in order to re-use the space
already claimed by the log file.
Regards
Steen

Log file for database "xxx" is full

I seen the error message "Log file for database xxx is full. backup the
transaction log for the database to free up some log space.",
but I already checked the automatically grow file and unrestricted file
growth, and the server has still near 2GB free space, why the error still
pop-up? I have set the By percent property of the File growth to 15, but in
fact what is the number means?By percent property means that the file will grow by 15% each time it needs.
As to why it doesnt grow, did you check the windows side of things? Policies
and such limitations to file size.
MC
"kei" <kei@.discussions.microsoft.com> wrote in message
news:E36B16A3-2EB2-4D64-B7B2-E56F79CA9C2D@.microsoft.com...
>I seen the error message "Log file for database xxx is full. backup the
> transaction log for the database to free up some log space.",
> but I already checked the automatically grow file and unrestricted file
> growth, and the server has still near 2GB free space, why the error still
> pop-up? I have set the By percent property of the File growth to 15, but
> in
> fact what is the number means?|||grow by 15%, but I don't know the x in x = x + 15%! what is the x come from?
I see the space allocated column is 110, is this means the file will grow by
110 * 15% each time?
"MC" wrote:

> By percent property means that the file will grow by 15% each time it need
s.
> As to why it doesnt grow, did you check the windows side of things? Polici
es
> and such limitations to file size.
>
> MC
>
> "kei" <kei@.discussions.microsoft.com> wrote in message
> news:E36B16A3-2EB2-4D64-B7B2-E56F79CA9C2D@.microsoft.com...
>
>|||No.
It will grow by x * 0.15 each time. So if you have 100, next value is 115,
after that is 115 + (115* 0.15)
MC
"kei" <kei@.discussions.microsoft.com> wrote in message
news:E0606C35-1C61-4509-98E7-6423BA79C173@.microsoft.com...[vbcol=seagreen]
> grow by 15%, but I don't know the x in x = x + 15%! what is the x come
> from?
> I see the space allocated column is 110, is this means the file will grow
> by
> 110 * 15% each time?
> "MC" wrote:
>|||Oh, it was my question here, where is the value 100 come from? the value fro
m
column "space allocated"?
"MC" wrote:

> No.
> It will grow by x * 0.15 each time. So if you have 100, next value is 115,
> after that is 115 + (115* 0.15)
> MC
> "kei" <kei@.discussions.microsoft.com> wrote in message
> news:E0606C35-1C61-4509-98E7-6423BA79C173@.microsoft.com...
>
>|||Yes.
MC
"kei" <kei@.discussions.microsoft.com> wrote in message
news:AB9DCC9A-B2F1-40DF-8E4F-CC54F0736456@.microsoft.com...[vbcol=seagreen]
> Oh, it was my question here, where is the value 100 come from? the value
> from
> column "space allocated"?
> "MC" wrote:
>|||kei wrote:[vbcol=seagreen]
> grow by 15%, but I don't know the x in x = x + 15%! what is the x come fro
m?
> I see the space allocated column is 110, is this means the file will grow
by
> 110 * 15% each time?
> "MC" wrote:
>
The problem can actually also occur if you server doesn't grow the log
file fast enough. If it happens quite often, I'd consider increasing the
log size manually and then expanding it with e.g. 50% or 100 %. By doing
this it will take a while before it has to grow again. You could also
try to set the "auto grow" option to grow e.g. 100 MB at the time rather
than a percentage.
You don't mention anything about your backup strategy, but it could be
that you need to backup you log file in order to re-use the space
already claimed by the log file.
Regards
Steen

Wednesday, March 7, 2012

Log backups

This is a multi-part message in MIME format.
--=_NextPart_000_0016_01C4E1FA.FB4AE680
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
Im looking for an easy, efficient, inexpensive way to backup the SQL = transaction logs. I was thinking about purchasing a DVD burner to back = them up to, but I don't know a whole lot about DVD burners or SQL backup = for that matter. Will I be able to do this? I would like to have the = logs backed up to the DVD every half hour, will a DVD support this type = of write/re-write access? Of course in addition to that I plan to have = full db backups done once a day to tape, but I can take care of that = part. My main concern is with the log files, does anyone know if = backing up to a DVD drive like that will work?
Thanks.
-- NATHAN WALTER
Santa Barbara, CA
--=_NextPart_000_0016_01C4E1FA.FB4AE680
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&
Hello,

Im looking for an easy, efficient, = inexpensive way to backup the SQL transaction logs. I was thinking about = purchasing a DVD burner to back them up to, but I don't know a whole lot about DVD = burners or SQL backup for that matter. Will I be able to do this? I = would like to have the logs backed up to the DVD every half hour, will a DVD = support this type of write/re-write access? Of course in addition to that I = plan to have full db backups done once a day to tape, but I can take care of = that part. My main concern is with the log files, does anyone know if = backing up to a DVD drive like that will work?

Thanks.
-- NATHAN WALTERSanta = Barbara, CA
--=_NextPart_000_0016_01C4E1FA.FB4AE680--Please don't post in HTML.
I think a hard drive would be far easier and cheaper.
How many days/weeks of backups do you expect to need to save?
"Nathan Walter" <nwalter@.fielding.edu> wrote in message
news:eECt22j4EHA.1452@.TK2MSFTNGP11.phx.gbl...
Hello,
Im looking for an easy, efficient, inexpensive way to backup the SQL
transaction logs. I was thinking about purchasing a DVD burner to back them
up to, but I don't know a whole lot about DVD burners or SQL backup for that
matter. Will I be able to do this? I would like to have the logs backed up
to the DVD every half hour, will a DVD support this type of write/re-write
access? Of course in addition to that I plan to have full db backups done
once a day to tape, but I can take care of that part. My main concern is
with the log files, does anyone know if backing up to a DVD drive like that
will work?
Thanks.
--
NATHAN WALTER
Santa Barbara, CA|||This is a multi-part message in MIME format.
--=_NextPart_000_002D_01C4E27B.9057E270
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have never tried to backup directly to a DVD, but it wouldn't take but =a second to find out...
If you are going to backup to a disk drive, just buy a cheap IDE drive, =and put it on another server somewhere. Backup the logs to the other =drive. You could uy 2 drives and swap them out weekly ( depending on how =much data you will be backing up).
You could also backup to the IDE drive, THEN copy the backup files to =the DVD using normal file copy and backup procedures, then remove the =files from the disk drive...
-- Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Nathan Walter" <nwalter@.fielding.edu> wrote in message =news:eECt22j4EHA.1452@.TK2MSFTNGP11.phx.gbl...
Hello,
Im looking for an easy, efficient, inexpensive way to backup the SQL =transaction logs. I was thinking about purchasing a DVD burner to back =them up to, but I don't know a whole lot about DVD burners or SQL backup =for that matter. Will I be able to do this? I would like to have the =logs backed up to the DVD every half hour, will a DVD support this type =of write/re-write access? Of course in addition to that I plan to have =full db backups done once a day to tape, but I can take care of that =part. My main concern is with the log files, does anyone know if =backing up to a DVD drive like that will work?
Thanks.
-- NATHAN WALTER
Santa Barbara, CA
--=_NextPart_000_002D_01C4E27B.9057E270
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

I have never tried to backup directly =to a DVD, but it wouldn't take but a second to find out...
If you are going to backup to a disk =drive, just buy a cheap IDE drive, and put it on another server somewhere. Backup =the logs to the other drive. You could uy 2 drives and swap them out weekly ( =depending on how much data you will be backing up).
You could also backup to the IDE drive, =THEN copy the backup files to the DVD using normal file copy and backup =procedures, then remove the files from the disk drive...
-- Wayne Snyder, MCDBA, SQL Server MVPMariner, =Charlotte, NChttp://www.mariner-usa.com">www.mariner-usa.com(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it'scommunity of SQL Server professionals.http://www.sqlpass.org">www.sqlpass.org
"Nathan Walter" =wrote in message news:eECt22j4EHA.1452=@.TK2MSFTNGP11.phx.gbl...
Hello,

Im looking for an easy, efficient, =inexpensive way to backup the SQL transaction logs. I was thinking about =purchasing a DVD burner to back them up to, but I don't know a whole lot about =DVD burners or SQL backup for that matter. Will I be able to do =this? I would like to have the logs backed up to the DVD every half hour, =will a DVD support this type of write/re-write access? Of course in =addition to that I plan to have full db backups done once a day to tape, but I can =take care of that part. My main concern is with the log files, does =anyone know if backing up to a DVD drive like that will work?

Thanks.
-- NATHAN WALTERSanta =Barbara, CA

--=_NextPart_000_002D_01C4E27B.9057E270--|||You can use ntbackup with http://www.firestreamer.com/fsdvd/. This will
allow you to backup with Volume Shadow Copy directly to DVD.

Friday, February 24, 2012

log

I get an error message:
"Msg 9002, Level 17, State 2, Line 1
The transaction log for database 'My_db' is full. To find out why
space in the log cannot be reused, see the log_reuse_wait_desc column
in sys.databases"
The collumn log_reuse_wait_desc says: LOG_BACKUP
There is not much free space on the file server. How can I force or
set the option so that I can run the query? I don't need any backup
(data or log) either.
Thanks.On Jun 6, 4:35 pm, SB <othell...@.yahoo.com> wrote:
> I get an error message:
> "Msg 9002, Level 17, State 2, Line 1
> The transaction log for database 'My_db' is full. To find out why
> space in the log cannot be reused, see the log_reuse_wait_desc column
> in sys.databases"
> The collumn log_reuse_wait_desc says: LOG_BACKUP
> There is not much free space on the file server. How can I force or
> set the option so that I can run the query? I don't need any backup
> (data or log) either.
> Thanks.
I did try to shrink the log (and data) but the problem persists
(LOG_BACKUP).|||SB wrote:
> On Jun 6, 4:35 pm, SB <othell...@.yahoo.com> wrote:
> I did try to shrink the log (and data) but the problem persists
> (LOG_BACKUP).
>
Hi,
You'll need to backup the log file in irder to free up some space within
the file. If you run the BACKUP LOG command with the NO_LOG option, it
will truncate your logfile and free up some space.
Once you've done that, I suggest that you either do a regular backup of
the log or set the database in SIMPLE recovery mode. In that case it
will truncate the log automatically.
Regards
Steen Schlter Persson
Database Administrator / System Administrator

Monday, February 20, 2012

log

I get an error message:
"Msg 9002, Level 17, State 2, Line 1
The transaction log for database 'My_db' is full. To find out why
space in the log cannot be reused, see the log_reuse_wait_desc column
in sys.databases"
The collumn log_reuse_wait_desc says: LOG_BACKUP
There is not much free space on the file server. How can I force or
set the option so that I can run the query? I don't need any backup
(data or log) either.
Thanks.On Jun 6, 4:35 pm, SB <othell...@.yahoo.com> wrote:
> I get an error message:
> "Msg 9002, Level 17, State 2, Line 1
> The transaction log for database 'My_db' is full. To find out why
> space in the log cannot be reused, see the log_reuse_wait_desc column
> in sys.databases"
> The collumn log_reuse_wait_desc says: LOG_BACKUP
> There is not much free space on the file server. How can I force or
> set the option so that I can run the query? I don't need any backup
> (data or log) either.
> Thanks.
I did try to shrink the log (and data) but the problem persists
(LOG_BACKUP).|||SB wrote:
> On Jun 6, 4:35 pm, SB <othell...@.yahoo.com> wrote:
>> I get an error message:
>> "Msg 9002, Level 17, State 2, Line 1
>> The transaction log for database 'My_db' is full. To find out why
>> space in the log cannot be reused, see the log_reuse_wait_desc column
>> in sys.databases"
>> The collumn log_reuse_wait_desc says: LOG_BACKUP
>> There is not much free space on the file server. How can I force or
>> set the option so that I can run the query? I don't need any backup
>> (data or log) either.
>> Thanks.
> I did try to shrink the log (and data) but the problem persists
> (LOG_BACKUP).
>
Hi,
You'll need to backup the log file in irder to free up some space within
the file. If you run the BACKUP LOG command with the NO_LOG option, it
will truncate your logfile and free up some space.
Once you've done that, I suggest that you either do a regular backup of
the log or set the database in SIMPLE recovery mode. In that case it
will truncate the log automatically.
--
Regards
Steen Schlüter Persson
Database Administrator / System Administrator

log

I get an error message:
"Msg 9002, Level 17, State 2, Line 1
The transaction log for database 'My_db' is full. To find out why
space in the log cannot be reused, see the log_reuse_wait_desc column
in sys.databases"
The collumn log_reuse_wait_desc says: LOG_BACKUP
There is not much free space on the file server. How can I force or
set the option so that I can run the query? I don't need any backup
(data or log) either.
Thanks.
On Jun 6, 4:35 pm, SB <othell...@.yahoo.com> wrote:
> I get an error message:
> "Msg 9002, Level 17, State 2, Line 1
> The transaction log for database 'My_db' is full. To find out why
> space in the log cannot be reused, see the log_reuse_wait_desc column
> in sys.databases"
> The collumn log_reuse_wait_desc says: LOG_BACKUP
> There is not much free space on the file server. How can I force or
> set the option so that I can run the query? I don't need any backup
> (data or log) either.
> Thanks.
I did try to shrink the log (and data) but the problem persists
(LOG_BACKUP).
|||SB wrote:
> On Jun 6, 4:35 pm, SB <othell...@.yahoo.com> wrote:
> I did try to shrink the log (and data) but the problem persists
> (LOG_BACKUP).
>
Hi,
You'll need to backup the log file in irder to free up some space within
the file. If you run the BACKUP LOG command with the NO_LOG option, it
will truncate your logfile and free up some space.
Once you've done that, I suggest that you either do a regular backup of
the log or set the database in SIMPLE recovery mode. In that case it
will truncate the log automatically.
Regards
Steen Schlter Persson
Database Administrator / System Administrator

log

I checked our SQL server log/ current activities.
There is a message: starting up database tester,and this
is the testing database before we put our real database
on the server. Now we've already changed our application
to use our production database.
But we still get a lot of above messages. and every 20
seconds.
What caused this and what should we do about it?
I delete the database tester now from the server, for we
are not going to use it. I just wonder if this is a
security issue or not?That was probably due to the fact you had the Auto-Close option set to ON.
Andrew J. Kelly
SQL Server MVP
"Ann" <anonymous@.discussions.microsoft.com> wrote in message
news:024001c3ce40$32d0cf40$a101280a@.phx.gbl...
quote:

> I checked our SQL server log/ current activities.
> There is a message: starting up database tester,and this
> is the testing database before we put our real database
> on the server. Now we've already changed our application
> to use our production database.
> But we still get a lot of above messages. and every 20
> seconds.
> What caused this and what should we do about it?
> I delete the database tester now from the server, for we
> are not going to use it. I just wonder if this is a
> security issue or not?
|||Or if you are doing periodic restores. Every time, you
perform a database restore or log restore, an entry
of 'starting up database xyz' will be written to the SQL
errorlog.
Linchi
quote:

>--Original Message--
>That was probably due to the fact you had the Auto-Close

option set to ON.
quote:

>--
>Andrew J. Kelly
>SQL Server MVP
>
>"Ann" <anonymous@.discussions.microsoft.com> wrote in

message
quote:

>news:024001c3ce40$32d0cf40$a101280a@.phx.gbl...
>
>.
>