Showing posts with label space. Show all posts
Showing posts with label space. Show all posts

Monday, March 26, 2012

Lo Disk Space-archive?- index reduction-slow server, need assistan

Drive space is being eaten away and we are still a couple of weeks from
moving to a newer larger server. There is concern over what is filling up
the data drives (not log) so quickly and there is a list of things to do that
are pretty drastic...
1-Drop indexes - not sure how to do this correctly - can indexes be dropped
if an index with the same number of items in it plus some extras are already
existing - and will this retrieve some disk space?
2-Archive more data to the data warehouse - most all that can be archived is
archived but there may be more we can do
3-Add ram - already done to the max
4-change all switches to gigabit switches (in process)
5-can the 10 templog files that are on the E:\ drive be removed and all temp
file logs go to the F:\ drive where space is adequate (both are raid 5) - not
sure how to remove the ten on the E drive - the big one is already on F:\
6-Can't think of one but would like to hear feedback
SQL Server 2000 Std running on 6 gig RAM Win SVR ADVANCED 2000 using the
\PAE boot.ini switch. Running Four processors...with affinity mask for all
400 maximum worker threads with Boost SQL Server - single processor used for
parallel processing, memory configured dynamically with a 1 Meg Minimum and
using configured values
--
Regards,
JamieHi
I'm not sure, dis you find WHAT's fill the disc space? Is it tempdb?
"thejamie" <thejamie@.discussions.microsoft.com> wrote in message
news:AC712D65-2280-4DAC-B34D-5112A7FBABA4@.microsoft.com...
> Drive space is being eaten away and we are still a couple of weeks from
> moving to a newer larger server. There is concern over what is filling up
> the data drives (not log) so quickly and there is a list of things to do
> that
> are pretty drastic...
> 1-Drop indexes - not sure how to do this correctly - can indexes be
> dropped
> if an index with the same number of items in it plus some extras are
> already
> existing - and will this retrieve some disk space?
> 2-Archive more data to the data warehouse - most all that can be archived
> is
> archived but there may be more we can do
> 3-Add ram - already done to the max
> 4-change all switches to gigabit switches (in process)
> 5-can the 10 templog files that are on the E:\ drive be removed and all
> temp
> file logs go to the F:\ drive where space is adequate (both are raid 5) -
> not
> sure how to remove the ten on the E drive - the big one is already on F:\
> 6-Can't think of one but would like to hear feedback
> SQL Server 2000 Std running on 6 gig RAM Win SVR ADVANCED 2000 using the
> \PAE boot.ini switch. Running Four processors...with affinity mask for
> all
> 400 maximum worker threads with Boost SQL Server - single processor used
> for
> parallel processing, memory configured dynamically with a 1 Meg Minimum
> and
> using configured values
> --
> Regards,
> Jamie|||No, not tempdb. It was actually our EDI server which accepts transmission
from partners. We're just running on the edge of space and time. I'm
looking for any improvement I can get. I optimized some views and added
indexing for them but adding more indexes will also add more disk space. I
don't know how to remove (other than random delete) indexes if they are not
needed. What would be the criteria to drop an index? IS there a way to
tell it is no longer needed? To the statistics tell me anything?
--
Regards,
Jamie
"Uri Dimant" wrote:
> Hi
> I'm not sure, dis you find WHAT's fill the disc space? Is it tempdb?
>
>
> "thejamie" <thejamie@.discussions.microsoft.com> wrote in message
> news:AC712D65-2280-4DAC-B34D-5112A7FBABA4@.microsoft.com...
> > Drive space is being eaten away and we are still a couple of weeks from
> > moving to a newer larger server. There is concern over what is filling up
> > the data drives (not log) so quickly and there is a list of things to do
> > that
> > are pretty drastic...
> > 1-Drop indexes - not sure how to do this correctly - can indexes be
> > dropped
> > if an index with the same number of items in it plus some extras are
> > already
> > existing - and will this retrieve some disk space?
> > 2-Archive more data to the data warehouse - most all that can be archived
> > is
> > archived but there may be more we can do
> > 3-Add ram - already done to the max
> > 4-change all switches to gigabit switches (in process)
> > 5-can the 10 templog files that are on the E:\ drive be removed and all
> > temp
> > file logs go to the F:\ drive where space is adequate (both are raid 5) -
> > not
> > sure how to remove the ten on the E drive - the big one is already on F:\
> > 6-Can't think of one but would like to hear feedback
> > SQL Server 2000 Std running on 6 gig RAM Win SVR ADVANCED 2000 using the
> > \PAE boot.ini switch. Running Four processors...with affinity mask for
> > all
> > 400 maximum worker threads with Boost SQL Server - single processor used
> > for
> > parallel processing, memory configured dynamically with a 1 Meg Minimum
> > and
> > using configured values
> > --
> > Regards,
> > Jamie
>
>|||Hi
I'd turn on SQL Server Profiler and try to identify long running queries
(group by Duration/Reads/CPU) and then you have to optimize them (add/drop
indexes)
"thejamie" <thejamie@.discussions.microsoft.com> wrote in message
news:A249BF2D-905A-4C52-BE9F-1B8DE6A1BB06@.microsoft.com...
> No, not tempdb. It was actually our EDI server which accepts transmission
> from partners. We're just running on the edge of space and time. I'm
> looking for any improvement I can get. I optimized some views and added
> indexing for them but adding more indexes will also add more disk space.
> I
> don't know how to remove (other than random delete) indexes if they are
> not
> needed. What would be the criteria to drop an index? IS there a way to
> tell it is no longer needed? To the statistics tell me anything?
> --
> Regards,
> Jamie
>
> "Uri Dimant" wrote:
>> Hi
>> I'm not sure, dis you find WHAT's fill the disc space? Is it tempdb?
>>
>>
>> "thejamie" <thejamie@.discussions.microsoft.com> wrote in message
>> news:AC712D65-2280-4DAC-B34D-5112A7FBABA4@.microsoft.com...
>> > Drive space is being eaten away and we are still a couple of weeks from
>> > moving to a newer larger server. There is concern over what is filling
>> > up
>> > the data drives (not log) so quickly and there is a list of things to
>> > do
>> > that
>> > are pretty drastic...
>> > 1-Drop indexes - not sure how to do this correctly - can indexes be
>> > dropped
>> > if an index with the same number of items in it plus some extras are
>> > already
>> > existing - and will this retrieve some disk space?
>> > 2-Archive more data to the data warehouse - most all that can be
>> > archived
>> > is
>> > archived but there may be more we can do
>> > 3-Add ram - already done to the max
>> > 4-change all switches to gigabit switches (in process)
>> > 5-can the 10 templog files that are on the E:\ drive be removed and all
>> > temp
>> > file logs go to the F:\ drive where space is adequate (both are raid
>> > 5) -
>> > not
>> > sure how to remove the ten on the E drive - the big one is already on
>> > F:\
>> > 6-Can't think of one but would like to hear feedback
>> > SQL Server 2000 Std running on 6 gig RAM Win SVR ADVANCED 2000 using
>> > the
>> > \PAE boot.ini switch. Running Four processors...with affinity mask for
>> > all
>> > 400 maximum worker threads with Boost SQL Server - single processor
>> > used
>> > for
>> > parallel processing, memory configured dynamically with a 1 Meg Minimum
>> > and
>> > using configured values
>> > --
>> > Regards,
>> > Jamie
>>|||I've been doing just that - that is, except the part where you drop indexes.
If the profiler happens to optimize something that runs at 8 AM and it
doesn't run again til 5 AM and recommends that an index be dropped because it
doesn't see usage on it and then about noon, that index is needed - but it
has been dropped and the system goes to its knees, I'm better off living with
the current issues. I think the answer is to take an entire day of profile
and optimize against that. Seems a bit extreme. Is there another way?
--
Regards,
Jamie
"Uri Dimant" wrote:
> Hi
> I'd turn on SQL Server Profiler and try to identify long running queries
> (group by Duration/Reads/CPU) and then you have to optimize them (add/drop
> indexes)
>
> "thejamie" <thejamie@.discussions.microsoft.com> wrote in message
> news:A249BF2D-905A-4C52-BE9F-1B8DE6A1BB06@.microsoft.com...
> > No, not tempdb. It was actually our EDI server which accepts transmission
> > from partners. We're just running on the edge of space and time. I'm
> > looking for any improvement I can get. I optimized some views and added
> > indexing for them but adding more indexes will also add more disk space.
> > I
> > don't know how to remove (other than random delete) indexes if they are
> > not
> > needed. What would be the criteria to drop an index? IS there a way to
> > tell it is no longer needed? To the statistics tell me anything?
> > --
> > Regards,
> > Jamie
> >
> >
> > "Uri Dimant" wrote:
> >
> >> Hi
> >> I'm not sure, dis you find WHAT's fill the disc space? Is it tempdb?
> >>
> >>
> >>
> >>
> >> "thejamie" <thejamie@.discussions.microsoft.com> wrote in message
> >> news:AC712D65-2280-4DAC-B34D-5112A7FBABA4@.microsoft.com...
> >> > Drive space is being eaten away and we are still a couple of weeks from
> >> > moving to a newer larger server. There is concern over what is filling
> >> > up
> >> > the data drives (not log) so quickly and there is a list of things to
> >> > do
> >> > that
> >> > are pretty drastic...
> >> > 1-Drop indexes - not sure how to do this correctly - can indexes be
> >> > dropped
> >> > if an index with the same number of items in it plus some extras are
> >> > already
> >> > existing - and will this retrieve some disk space?
> >> > 2-Archive more data to the data warehouse - most all that can be
> >> > archived
> >> > is
> >> > archived but there may be more we can do
> >> > 3-Add ram - already done to the max
> >> > 4-change all switches to gigabit switches (in process)
> >> > 5-can the 10 templog files that are on the E:\ drive be removed and all
> >> > temp
> >> > file logs go to the F:\ drive where space is adequate (both are raid
> >> > 5) -
> >> > not
> >> > sure how to remove the ten on the E drive - the big one is already on
> >> > F:\
> >> > 6-Can't think of one but would like to hear feedback
> >> > SQL Server 2000 Std running on 6 gig RAM Win SVR ADVANCED 2000 using
> >> > the
> >> > \PAE boot.ini switch. Running Four processors...with affinity mask for
> >> > all
> >> > 400 maximum worker threads with Boost SQL Server - single processor
> >> > used
> >> > for
> >> > parallel processing, memory configured dynamically with a 1 Meg Minimum
> >> > and
> >> > using configured values
> >> > --
> >> > Regards,
> >> > Jamie
> >>
> >>
> >>
>
>|||Hi
http://www.sql-server-performance.com/articles/per/finding_duplicate_indexes_p1.aspx
"thejamie" <thejamie@.discussions.microsoft.com> wrote in message
news:7A3271B1-31DB-45A4-8882-89E3AD40D5BD@.microsoft.com...
> I've been doing just that - that is, except the part where you drop
> indexes.
> If the profiler happens to optimize something that runs at 8 AM and it
> doesn't run again til 5 AM and recommends that an index be dropped because
> it
> doesn't see usage on it and then about noon, that index is needed - but it
> has been dropped and the system goes to its knees, I'm better off living
> with
> the current issues. I think the answer is to take an entire day of
> profile
> and optimize against that. Seems a bit extreme. Is there another way?
> --
> Regards,
> Jamie
>
> "Uri Dimant" wrote:
>> Hi
>> I'd turn on SQL Server Profiler and try to identify long running queries
>> (group by Duration/Reads/CPU) and then you have to optimize them
>> (add/drop
>> indexes)
>>
>> "thejamie" <thejamie@.discussions.microsoft.com> wrote in message
>> news:A249BF2D-905A-4C52-BE9F-1B8DE6A1BB06@.microsoft.com...
>> > No, not tempdb. It was actually our EDI server which accepts
>> > transmission
>> > from partners. We're just running on the edge of space and time. I'm
>> > looking for any improvement I can get. I optimized some views and
>> > added
>> > indexing for them but adding more indexes will also add more disk
>> > space.
>> > I
>> > don't know how to remove (other than random delete) indexes if they are
>> > not
>> > needed. What would be the criteria to drop an index? IS there a way
>> > to
>> > tell it is no longer needed? To the statistics tell me anything?
>> > --
>> > Regards,
>> > Jamie
>> >
>> >
>> > "Uri Dimant" wrote:
>> >
>> >> Hi
>> >> I'm not sure, dis you find WHAT's fill the disc space? Is it tempdb?
>> >>
>> >>
>> >>
>> >>
>> >> "thejamie" <thejamie@.discussions.microsoft.com> wrote in message
>> >> news:AC712D65-2280-4DAC-B34D-5112A7FBABA4@.microsoft.com...
>> >> > Drive space is being eaten away and we are still a couple of weeks
>> >> > from
>> >> > moving to a newer larger server. There is concern over what is
>> >> > filling
>> >> > up
>> >> > the data drives (not log) so quickly and there is a list of things
>> >> > to
>> >> > do
>> >> > that
>> >> > are pretty drastic...
>> >> > 1-Drop indexes - not sure how to do this correctly - can indexes be
>> >> > dropped
>> >> > if an index with the same number of items in it plus some extras are
>> >> > already
>> >> > existing - and will this retrieve some disk space?
>> >> > 2-Archive more data to the data warehouse - most all that can be
>> >> > archived
>> >> > is
>> >> > archived but there may be more we can do
>> >> > 3-Add ram - already done to the max
>> >> > 4-change all switches to gigabit switches (in process)
>> >> > 5-can the 10 templog files that are on the E:\ drive be removed and
>> >> > all
>> >> > temp
>> >> > file logs go to the F:\ drive where space is adequate (both are raid
>> >> > 5) -
>> >> > not
>> >> > sure how to remove the ten on the E drive - the big one is already
>> >> > on
>> >> > F:\
>> >> > 6-Can't think of one but would like to hear feedback
>> >> > SQL Server 2000 Std running on 6 gig RAM Win SVR ADVANCED 2000 using
>> >> > the
>> >> > \PAE boot.ini switch. Running Four processors...with affinity mask
>> >> > for
>> >> > all
>> >> > 400 maximum worker threads with Boost SQL Server - single processor
>> >> > used
>> >> > for
>> >> > parallel processing, memory configured dynamically with a 1 Meg
>> >> > Minimum
>> >> > and
>> >> > using configured values
>> >> > --
>> >> > Regards,
>> >> > Jamie
>> >>
>> >>
>> >>
>>|||See in-line for comments:
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"thejamie" <thejamie@.discussions.microsoft.com> wrote in message
news:AC712D65-2280-4DAC-B34D-5112A7FBABA4@.microsoft.com...
> Drive space is being eaten away and we are still a couple of weeks from
> moving to a newer larger server. There is concern over what is filling up
> the data drives (not log) so quickly and there is a list of things to do
> that
> are pretty drastic...
I hope the new server is better configured than the current one or you will
have similar issues. From the following comments you posted this system does
not appear to be configured properly. If you carry these same concepts over
to the new machine you may not have gained much. Before you change any
setting from the default you beet have a valid reason and know what that
change will do in advance.
> 1-Drop indexes - not sure how to do this correctly - can indexes be
> dropped
> if an index with the same number of items in it plus some extras are
> already
> existing - and will this retrieve some disk space?
That is too general a question to answer correctly with a yes or no. If the
index is truely duplicate then yes it can be removed. If you have indexes
with lots of columns then unless they are really being used effectively as
covering indexes you may be able to drop them in favor of smaller but
similar indexes. If for instance the smaller index is very selective already
the other columns may not add more overhead than necessary if again they are
not effective as a covering index.
> 2-Archive more data to the data warehouse - most all that can be archived
> is
> archived but there may be more we can do
Only you can decide that
> 3-Add ram - already done to the max
What will that do to alleviate your disk space issues?
> 4-change all switches to gigabit switches (in process)
Again that does nothign for disk space issues but is never a bad idea.
> 5-can the 10 templog files that are on the E:\ drive be removed and all
> temp
> file logs go to the F:\ drive where space is adequate (both are raid 5) -
> not
> sure how to remove the ten on the E drive - the big one is already on F:\
Why do you have 10 log files for any database? You gain nothing by having
more than 1 log file per db on a single array.
> 6-Can't think of one but would like to hear feedback
> SQL Server 2000 Std running on 6 gig RAM Win SVR ADVANCED 2000 using the
> \PAE boot.ini switch. Running Four processors...with affinity mask for
> all
> 400 maximum worker threads with Boost SQL Server - single processor used
> for
> parallel processing, memory configured dynamically with a 1 Meg Minimum
> and
> using configured values
SQL 2000 Std will only use 2GB max so the 6GB you have is mostly wasted. Why
do you have the affinity mask set? Why did you change the MAX worker thread
count? Turn off the Boost priority.
> --
> Regards,
> Jamie

Live server running out of space - Can't reduce Transaction Log!

Hi,
I have just come across a bit of a problem of my Windows 200 server running
SQL Server 2000....I am running out of space!
I have aout 2GB left. I have know this for some time, and for technical
reasons just found out I can't add a new disk...but that's another story.
I have looked at what I can reduce to increase the space, and it seems one
of the smaller database I have on the server, i.e. 16MB, has a log file of
4.8GB!
I am not sure why this has occured, possibly due to not setting a checkpoint
during backup or something!?!?!
...anyway I am desperately tying to reduce the size of this file, and have
tried running the following:
USE Comms
GO
DBCC SHRINKFILE (Comms_log, 10)
and it just comes back and tells me:
- CurrentSize 608616
- Minimum Size 63
- UsedPages 608616
- EstimatedPages 56
with no reduction in LogFile size.
I also tried backing up just the databse and then restoring it under a
different name (so I can completely delete the old one and it's log!), but
when I try to restore it the system just comes back and tells me it hasn't
got enough space, even though it has just over 2GB (presumably it is trying,
or thinks it is trying to restore the log file as well, but goodness knows
where it's getting it from?!).
Any ideas?
Cheers, desperate Mike.
Mike,
What is the database recovery model? Is the log space unrestricted? Do you
take log backups?
If this is a Full recovery model DB then take a log backup. If the log in
unrestricted filegrowth give it a maximum size, just bigger than it is now.
Then you need to follow this: - http://support.microsoft.com/kb/873235/en-us
Chris
"Mike Owen" <whatnospam@.nospam.nospam> wrote in message
news:8CFFFB57-6B03-4DA3-95E7-BFD6B27C95A3@.microsoft.com...
> Hi,
> I have just come across a bit of a problem of my Windows 200 server
> running
> SQL Server 2000....I am running out of space!
> I have aout 2GB left. I have know this for some time, and for technical
> reasons just found out I can't add a new disk...but that's another story.
> I have looked at what I can reduce to increase the space, and it seems one
> of the smaller database I have on the server, i.e. 16MB, has a log file of
> 4.8GB!
> I am not sure why this has occured, possibly due to not setting a
> checkpoint
> during backup or something!?!?!
> ...anyway I am desperately tying to reduce the size of this file, and have
> tried running the following:
> USE Comms
> GO
> DBCC SHRINKFILE (Comms_log, 10)
> and it just comes back and tells me:
> - CurrentSize 608616
> - Minimum Size 63
> - UsedPages 608616
> - EstimatedPages 56
> with no reduction in LogFile size.
> I also tried backing up just the databse and then restoring it under a
> different name (so I can completely delete the old one and it's log!), but
> when I try to restore it the system just comes back and tells me it hasn't
> got enough space, even though it has just over 2GB (presumably it is
> trying,
> or thinks it is trying to restore the log file as well, but goodness knows
> where it's getting it from?!).
> Any ideas?
> Cheers, desperate Mike.
>
|||Hi Mike,
Just do a transaction log backup and then try the shrink operation again.
If that does not work check if you have transactions or jobs running for a
long time.
Hope this helps,
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"Mike Owen" wrote:

> Hi,
> I have just come across a bit of a problem of my Windows 200 server running
> SQL Server 2000....I am running out of space!
> I have aout 2GB left. I have know this for some time, and for technical
> reasons just found out I can't add a new disk...but that's another story.
> I have looked at what I can reduce to increase the space, and it seems one
> of the smaller database I have on the server, i.e. 16MB, has a log file of
> 4.8GB!
> I am not sure why this has occured, possibly due to not setting a checkpoint
> during backup or something!?!?!
> ...anyway I am desperately tying to reduce the size of this file, and have
> tried running the following:
> USE Comms
> GO
> DBCC SHRINKFILE (Comms_log, 10)
> and it just comes back and tells me:
> - CurrentSize 608616
> - Minimum Size 63
> - UsedPages 608616
> - EstimatedPages 56
> with no reduction in LogFile size.
> I also tried backing up just the databse and then restoring it under a
> different name (so I can completely delete the old one and it's log!), but
> when I try to restore it the system just comes back and tells me it hasn't
> got enough space, even though it has just over 2GB (presumably it is trying,
> or thinks it is trying to restore the log file as well, but goodness knows
> where it's getting it from?!).
> Any ideas?
> Cheers, desperate Mike.
>
|||Thanks for you reply Ben, and you Chris. I don't think I can take a log file
backup because I can oly do it on the local server and I haven't the space,
i.e. 2GB space and 4GB+ log file.
I have got a netwrok drive to a different server with space, but the SQL
server backp program doesn't see netwrok drives.
Any other ideas or a way I can backup to the network drive?
Cheers, Mike.
"Ben Nevarez" wrote:
[vbcol=seagreen]
> Hi Mike,
> Just do a transaction log backup and then try the shrink operation again.
> If that does not work check if you have transactions or jobs running for a
> long time.
> Hope this helps,
> Ben Nevarez
> Senior Database Administrator
> AIG SunAmerica
>
> "Mike Owen" wrote:
|||If you do not have enough disk space then use the TRUNCATE_ONLY option like
in
backup log my_db with truncate_only
We are supposing you are not running in the SIMPLE recovery model. Is this
correct?
If that works, you must do a database backup at the end because by using
TRUNCATE_ONLY you are breaking the log chain.
Hope this helps,
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"Mike Owen" wrote:
[vbcol=seagreen]
> Thanks for you reply Ben, and you Chris. I don't think I can take a log file
> backup because I can oly do it on the local server and I haven't the space,
> i.e. 2GB space and 4GB+ log file.
> I have got a netwrok drive to a different server with space, but the SQL
> server backp program doesn't see netwrok drives.
> Any other ideas or a way I can backup to the network drive?
>
> Cheers, Mike.
> "Ben Nevarez" wrote:
|||Excuse my ignorance - It knows no bounds!
How do I know if I am using the SIMPLE recovery model?
I am quite happy to use: backup log my_db with truncate_only
The database isn't used very much, and I only backed it up about 1 1/2 hours
ago, so as long as I can recover that should something go wrong that would be
fine....but perhaps that isn't possible with the backup I have?!!?
Cheers, Mike.
"Ben Nevarez" wrote:
[vbcol=seagreen]
> If you do not have enough disk space then use the TRUNCATE_ONLY option like
> in
> backup log my_db with truncate_only
> We are supposing you are not running in the SIMPLE recovery model. Is this
> correct?
> If that works, you must do a database backup at the end because by using
> TRUNCATE_ONLY you are breaking the log chain.
> Hope this helps,
> Ben Nevarez
> Senior Database Administrator
> AIG SunAmerica
>
> "Mike Owen" wrote:
|||Looks like you are not using the SIMPLE recovery model but try this
select databasepropertyex('my_db', 'recovery')
And also try the backup log with truncate_only and then shrink the log files.
Hope this helps,
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"Mike Owen" wrote:
[vbcol=seagreen]
> Excuse my ignorance - It knows no bounds!
> How do I know if I am using the SIMPLE recovery model?
> I am quite happy to use: backup log my_db with truncate_only
> The database isn't used very much, and I only backed it up about 1 1/2 hours
> ago, so as long as I can recover that should something go wrong that would be
> fine....but perhaps that isn't possible with the backup I have?!!?
>
> Cheers, Mike.
> "Ben Nevarez" wrote:
|||The answer to select databasepropertyex('my_db', 'recovery')
is FULL.
I tried the '...try the backup log with truncate_only and then shrink the
log files' as you suggested and it WORKED!
I am now back to 7GB of space, plenty of room for growth for all the DB's,
and have restricted the size of all log files on the server.
Thanks for all your help, you got me out of a scrape!
Have a good weekend, cheers, Mike.
"Ben Nevarez" wrote:
[vbcol=seagreen]
> Looks like you are not using the SIMPLE recovery model but try this
> select databasepropertyex('my_db', 'recovery')
> And also try the backup log with truncate_only and then shrink the log files.
> Hope this helps,
> Ben Nevarez
> Senior Database Administrator
> AIG SunAmerica
>
> "Mike Owen" wrote:
|||Be careful about restricting the size of the log files ... SQL Server may
need this disk space.
Instead I would recommend scheduling transaction log backups periodically,
minimum daily. This will allow SQL Server to reuse the disk space used by the
transaction log files.
Hope this helps,
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"Mike Owen" wrote:
[vbcol=seagreen]
> The answer to select databasepropertyex('my_db', 'recovery')
> is FULL.
> I tried the '...try the backup log with truncate_only and then shrink the
> log files' as you suggested and it WORKED!
> I am now back to 7GB of space, plenty of room for growth for all the DB's,
> and have restricted the size of all log files on the server.
> Thanks for all your help, you got me out of a scrape!
> Have a good weekend, cheers, Mike.
>
> "Ben Nevarez" wrote:
|||You can also create an alert that will run the log backup if you fill it
over a certain percent. Providing that you do not have any very large
transactions this should keep you safe.
Chris
"Ben Nevarez" <BenNevarez@.discussions.microsoft.com> wrote in message
news:7BBF5A0F-45E0-4493-9A95-F50FF7D05D20@.microsoft.com...[vbcol=seagreen]
> Be careful about restricting the size of the log files ... SQL Server may
> need this disk space.
> Instead I would recommend scheduling transaction log backups periodically,
> minimum daily. This will allow SQL Server to reuse the disk space used by
> the
> transaction log files.
> Hope this helps,
> Ben Nevarez
> Senior Database Administrator
> AIG SunAmerica
>
> "Mike Owen" wrote:

Live server running out of space - Can't reduce Transaction Log!

Hi,
I have just come across a bit of a problem of my Windows 200 server running
SQL Server 2000....I am running out of space!
I have aout 2GB left. I have know this for some time, and for technical
reasons just found out I can't add a new disk...but that's another story.
I have looked at what I can reduce to increase the space, and it seems one
of the smaller database I have on the server, i.e. 16MB, has a log file of
4.8GB!
I am not sure why this has occured, possibly due to not setting a checkpoint
during backup or something!?!?!
...anyway I am desperately tying to reduce the size of this file, and have
tried running the following:
USE Comms
GO
DBCC SHRINKFILE (Comms_log, 10)
and it just comes back and tells me:
- CurrentSize 608616
- Minimum Size 63
- UsedPages 608616
- EstimatedPages 56
with no reduction in LogFile size.
I also tried backing up just the databse and then restoring it under a
different name (so I can completely delete the old one and it's log!), but
when I try to restore it the system just comes back and tells me it hasn't
got enough space, even though it has just over 2GB (presumably it is trying,
or thinks it is trying to restore the log file as well, but goodness knows
where it's getting it from?!).
Any ideas?
Cheers, desperate Mike.Mike,
What is the database recovery model? Is the log space unrestricted? Do you
take log backups?
If this is a Full recovery model DB then take a log backup. If the log in
unrestricted filegrowth give it a maximum size, just bigger than it is now.
Then you need to follow this: - http://support.microsoft.com/kb/873235/en-us
Chris
"Mike Owen" <whatnospam@.nospam.nospam> wrote in message
news:8CFFFB57-6B03-4DA3-95E7-BFD6B27C95A3@.microsoft.com...
> Hi,
> I have just come across a bit of a problem of my Windows 200 server
> running
> SQL Server 2000....I am running out of space!
> I have aout 2GB left. I have know this for some time, and for technical
> reasons just found out I can't add a new disk...but that's another story.
> I have looked at what I can reduce to increase the space, and it seems one
> of the smaller database I have on the server, i.e. 16MB, has a log file of
> 4.8GB!
> I am not sure why this has occured, possibly due to not setting a
> checkpoint
> during backup or something!?!?!
> ...anyway I am desperately tying to reduce the size of this file, and have
> tried running the following:
> USE Comms
> GO
> DBCC SHRINKFILE (Comms_log, 10)
> and it just comes back and tells me:
> - CurrentSize 608616
> - Minimum Size 63
> - UsedPages 608616
> - EstimatedPages 56
> with no reduction in LogFile size.
> I also tried backing up just the databse and then restoring it under a
> different name (so I can completely delete the old one and it's log!), but
> when I try to restore it the system just comes back and tells me it hasn't
> got enough space, even though it has just over 2GB (presumably it is
> trying,
> or thinks it is trying to restore the log file as well, but goodness knows
> where it's getting it from?!).
> Any ideas?
> Cheers, desperate Mike.
>|||Hi Mike,
Just do a transaction log backup and then try the shrink operation again.
If that does not work check if you have transactions or jobs running for a
long time.
Hope this helps,
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"Mike Owen" wrote:
> Hi,
> I have just come across a bit of a problem of my Windows 200 server running
> SQL Server 2000....I am running out of space!
> I have aout 2GB left. I have know this for some time, and for technical
> reasons just found out I can't add a new disk...but that's another story.
> I have looked at what I can reduce to increase the space, and it seems one
> of the smaller database I have on the server, i.e. 16MB, has a log file of
> 4.8GB!
> I am not sure why this has occured, possibly due to not setting a checkpoint
> during backup or something!?!?!
> ...anyway I am desperately tying to reduce the size of this file, and have
> tried running the following:
> USE Comms
> GO
> DBCC SHRINKFILE (Comms_log, 10)
> and it just comes back and tells me:
> - CurrentSize 608616
> - Minimum Size 63
> - UsedPages 608616
> - EstimatedPages 56
> with no reduction in LogFile size.
> I also tried backing up just the databse and then restoring it under a
> different name (so I can completely delete the old one and it's log!), but
> when I try to restore it the system just comes back and tells me it hasn't
> got enough space, even though it has just over 2GB (presumably it is trying,
> or thinks it is trying to restore the log file as well, but goodness knows
> where it's getting it from?!).
> Any ideas?
> Cheers, desperate Mike.
>|||Thanks for you reply Ben, and you Chris. I don't think I can take a log file
backup because I can oly do it on the local server and I haven't the space,
i.e. 2GB space and 4GB+ log file.
I have got a netwrok drive to a different server with space, but the SQL
server backp program doesn't see netwrok drives.
Any other ideas or a way I can backup to the network drive?
Cheers, Mike.
"Ben Nevarez" wrote:
> Hi Mike,
> Just do a transaction log backup and then try the shrink operation again.
> If that does not work check if you have transactions or jobs running for a
> long time.
> Hope this helps,
> Ben Nevarez
> Senior Database Administrator
> AIG SunAmerica
>
> "Mike Owen" wrote:
> > Hi,
> >
> > I have just come across a bit of a problem of my Windows 200 server running
> > SQL Server 2000....I am running out of space!
> >
> > I have aout 2GB left. I have know this for some time, and for technical
> > reasons just found out I can't add a new disk...but that's another story.
> >
> > I have looked at what I can reduce to increase the space, and it seems one
> > of the smaller database I have on the server, i.e. 16MB, has a log file of
> > 4.8GB!
> >
> > I am not sure why this has occured, possibly due to not setting a checkpoint
> > during backup or something!?!?!
> >
> > ...anyway I am desperately tying to reduce the size of this file, and have
> > tried running the following:
> >
> > USE Comms
> > GO
> > DBCC SHRINKFILE (Comms_log, 10)
> >
> > and it just comes back and tells me:
> > - CurrentSize 608616
> > - Minimum Size 63
> > - UsedPages 608616
> > - EstimatedPages 56
> >
> > with no reduction in LogFile size.
> >
> > I also tried backing up just the databse and then restoring it under a
> > different name (so I can completely delete the old one and it's log!), but
> > when I try to restore it the system just comes back and tells me it hasn't
> > got enough space, even though it has just over 2GB (presumably it is trying,
> > or thinks it is trying to restore the log file as well, but goodness knows
> > where it's getting it from?!).
> >
> > Any ideas?
> >
> > Cheers, desperate Mike.
> >|||If you do not have enough disk space then use the TRUNCATE_ONLY option like
in
backup log my_db with truncate_only
We are supposing you are not running in the SIMPLE recovery model. Is this
correct?
If that works, you must do a database backup at the end because by using
TRUNCATE_ONLY you are breaking the log chain.
Hope this helps,
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"Mike Owen" wrote:
> Thanks for you reply Ben, and you Chris. I don't think I can take a log file
> backup because I can oly do it on the local server and I haven't the space,
> i.e. 2GB space and 4GB+ log file.
> I have got a netwrok drive to a different server with space, but the SQL
> server backp program doesn't see netwrok drives.
> Any other ideas or a way I can backup to the network drive?
>
> Cheers, Mike.
> "Ben Nevarez" wrote:
> >
> > Hi Mike,
> >
> > Just do a transaction log backup and then try the shrink operation again.
> >
> > If that does not work check if you have transactions or jobs running for a
> > long time.
> >
> > Hope this helps,
> >
> > Ben Nevarez
> > Senior Database Administrator
> > AIG SunAmerica
> >
> >
> >
> > "Mike Owen" wrote:
> >
> > > Hi,
> > >
> > > I have just come across a bit of a problem of my Windows 200 server running
> > > SQL Server 2000....I am running out of space!
> > >
> > > I have aout 2GB left. I have know this for some time, and for technical
> > > reasons just found out I can't add a new disk...but that's another story.
> > >
> > > I have looked at what I can reduce to increase the space, and it seems one
> > > of the smaller database I have on the server, i.e. 16MB, has a log file of
> > > 4.8GB!
> > >
> > > I am not sure why this has occured, possibly due to not setting a checkpoint
> > > during backup or something!?!?!
> > >
> > > ...anyway I am desperately tying to reduce the size of this file, and have
> > > tried running the following:
> > >
> > > USE Comms
> > > GO
> > > DBCC SHRINKFILE (Comms_log, 10)
> > >
> > > and it just comes back and tells me:
> > > - CurrentSize 608616
> > > - Minimum Size 63
> > > - UsedPages 608616
> > > - EstimatedPages 56
> > >
> > > with no reduction in LogFile size.
> > >
> > > I also tried backing up just the databse and then restoring it under a
> > > different name (so I can completely delete the old one and it's log!), but
> > > when I try to restore it the system just comes back and tells me it hasn't
> > > got enough space, even though it has just over 2GB (presumably it is trying,
> > > or thinks it is trying to restore the log file as well, but goodness knows
> > > where it's getting it from?!).
> > >
> > > Any ideas?
> > >
> > > Cheers, desperate Mike.
> > >|||Excuse my ignorance - It knows no bounds!
How do I know if I am using the SIMPLE recovery model?
I am quite happy to use: backup log my_db with truncate_only
The database isn't used very much, and I only backed it up about 1 1/2 hours
ago, so as long as I can recover that should something go wrong that would be
fine....but perhaps that isn't possible with the backup I have?!!?
Cheers, Mike.
"Ben Nevarez" wrote:
> If you do not have enough disk space then use the TRUNCATE_ONLY option like
> in
> backup log my_db with truncate_only
> We are supposing you are not running in the SIMPLE recovery model. Is this
> correct?
> If that works, you must do a database backup at the end because by using
> TRUNCATE_ONLY you are breaking the log chain.
> Hope this helps,
> Ben Nevarez
> Senior Database Administrator
> AIG SunAmerica
>
> "Mike Owen" wrote:
> > Thanks for you reply Ben, and you Chris. I don't think I can take a log file
> > backup because I can oly do it on the local server and I haven't the space,
> > i.e. 2GB space and 4GB+ log file.
> >
> > I have got a netwrok drive to a different server with space, but the SQL
> > server backp program doesn't see netwrok drives.
> >
> > Any other ideas or a way I can backup to the network drive?
> >
> >
> > Cheers, Mike.
> >
> > "Ben Nevarez" wrote:
> >
> > >
> > > Hi Mike,
> > >
> > > Just do a transaction log backup and then try the shrink operation again.
> > >
> > > If that does not work check if you have transactions or jobs running for a
> > > long time.
> > >
> > > Hope this helps,
> > >
> > > Ben Nevarez
> > > Senior Database Administrator
> > > AIG SunAmerica
> > >
> > >
> > >
> > > "Mike Owen" wrote:
> > >
> > > > Hi,
> > > >
> > > > I have just come across a bit of a problem of my Windows 200 server running
> > > > SQL Server 2000....I am running out of space!
> > > >
> > > > I have aout 2GB left. I have know this for some time, and for technical
> > > > reasons just found out I can't add a new disk...but that's another story.
> > > >
> > > > I have looked at what I can reduce to increase the space, and it seems one
> > > > of the smaller database I have on the server, i.e. 16MB, has a log file of
> > > > 4.8GB!
> > > >
> > > > I am not sure why this has occured, possibly due to not setting a checkpoint
> > > > during backup or something!?!?!
> > > >
> > > > ...anyway I am desperately tying to reduce the size of this file, and have
> > > > tried running the following:
> > > >
> > > > USE Comms
> > > > GO
> > > > DBCC SHRINKFILE (Comms_log, 10)
> > > >
> > > > and it just comes back and tells me:
> > > > - CurrentSize 608616
> > > > - Minimum Size 63
> > > > - UsedPages 608616
> > > > - EstimatedPages 56
> > > >
> > > > with no reduction in LogFile size.
> > > >
> > > > I also tried backing up just the databse and then restoring it under a
> > > > different name (so I can completely delete the old one and it's log!), but
> > > > when I try to restore it the system just comes back and tells me it hasn't
> > > > got enough space, even though it has just over 2GB (presumably it is trying,
> > > > or thinks it is trying to restore the log file as well, but goodness knows
> > > > where it's getting it from?!).
> > > >
> > > > Any ideas?
> > > >
> > > > Cheers, desperate Mike.
> > > >|||Looks like you are not using the SIMPLE recovery model but try this
select databasepropertyex('my_db', 'recovery')
And also try the backup log with truncate_only and then shrink the log files.
Hope this helps,
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"Mike Owen" wrote:
> Excuse my ignorance - It knows no bounds!
> How do I know if I am using the SIMPLE recovery model?
> I am quite happy to use: backup log my_db with truncate_only
> The database isn't used very much, and I only backed it up about 1 1/2 hours
> ago, so as long as I can recover that should something go wrong that would be
> fine....but perhaps that isn't possible with the backup I have?!!?
>
> Cheers, Mike.
> "Ben Nevarez" wrote:
> >
> > If you do not have enough disk space then use the TRUNCATE_ONLY option like
> > in
> >
> > backup log my_db with truncate_only
> >
> > We are supposing you are not running in the SIMPLE recovery model. Is this
> > correct?
> >
> > If that works, you must do a database backup at the end because by using
> > TRUNCATE_ONLY you are breaking the log chain.
> >
> > Hope this helps,
> >
> > Ben Nevarez
> > Senior Database Administrator
> > AIG SunAmerica
> >
> >
> >
> > "Mike Owen" wrote:
> >
> > > Thanks for you reply Ben, and you Chris. I don't think I can take a log file
> > > backup because I can oly do it on the local server and I haven't the space,
> > > i.e. 2GB space and 4GB+ log file.
> > >
> > > I have got a netwrok drive to a different server with space, but the SQL
> > > server backp program doesn't see netwrok drives.
> > >
> > > Any other ideas or a way I can backup to the network drive?
> > >
> > >
> > > Cheers, Mike.
> > >
> > > "Ben Nevarez" wrote:
> > >
> > > >
> > > > Hi Mike,
> > > >
> > > > Just do a transaction log backup and then try the shrink operation again.
> > > >
> > > > If that does not work check if you have transactions or jobs running for a
> > > > long time.
> > > >
> > > > Hope this helps,
> > > >
> > > > Ben Nevarez
> > > > Senior Database Administrator
> > > > AIG SunAmerica
> > > >
> > > >
> > > >
> > > > "Mike Owen" wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I have just come across a bit of a problem of my Windows 200 server running
> > > > > SQL Server 2000....I am running out of space!
> > > > >
> > > > > I have aout 2GB left. I have know this for some time, and for technical
> > > > > reasons just found out I can't add a new disk...but that's another story.
> > > > >
> > > > > I have looked at what I can reduce to increase the space, and it seems one
> > > > > of the smaller database I have on the server, i.e. 16MB, has a log file of
> > > > > 4.8GB!
> > > > >
> > > > > I am not sure why this has occured, possibly due to not setting a checkpoint
> > > > > during backup or something!?!?!
> > > > >
> > > > > ...anyway I am desperately tying to reduce the size of this file, and have
> > > > > tried running the following:
> > > > >
> > > > > USE Comms
> > > > > GO
> > > > > DBCC SHRINKFILE (Comms_log, 10)
> > > > >
> > > > > and it just comes back and tells me:
> > > > > - CurrentSize 608616
> > > > > - Minimum Size 63
> > > > > - UsedPages 608616
> > > > > - EstimatedPages 56
> > > > >
> > > > > with no reduction in LogFile size.
> > > > >
> > > > > I also tried backing up just the databse and then restoring it under a
> > > > > different name (so I can completely delete the old one and it's log!), but
> > > > > when I try to restore it the system just comes back and tells me it hasn't
> > > > > got enough space, even though it has just over 2GB (presumably it is trying,
> > > > > or thinks it is trying to restore the log file as well, but goodness knows
> > > > > where it's getting it from?!).
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > Cheers, desperate Mike.
> > > > >|||The answer to select databasepropertyex('my_db', 'recovery')
is FULL.
I tried the '...try the backup log with truncate_only and then shrink the
log files' as you suggested and it WORKED!
I am now back to 7GB of space, plenty of room for growth for all the DB's,
and have restricted the size of all log files on the server.
Thanks for all your help, you got me out of a scrape!
Have a good weekend, cheers, Mike.
"Ben Nevarez" wrote:
> Looks like you are not using the SIMPLE recovery model but try this
> select databasepropertyex('my_db', 'recovery')
> And also try the backup log with truncate_only and then shrink the log files.
> Hope this helps,
> Ben Nevarez
> Senior Database Administrator
> AIG SunAmerica
>
> "Mike Owen" wrote:
> > Excuse my ignorance - It knows no bounds!
> >
> > How do I know if I am using the SIMPLE recovery model?
> >
> > I am quite happy to use: backup log my_db with truncate_only
> >
> > The database isn't used very much, and I only backed it up about 1 1/2 hours
> > ago, so as long as I can recover that should something go wrong that would be
> > fine....but perhaps that isn't possible with the backup I have?!!?
> >
> >
> > Cheers, Mike.
> >
> > "Ben Nevarez" wrote:
> >
> > >
> > > If you do not have enough disk space then use the TRUNCATE_ONLY option like
> > > in
> > >
> > > backup log my_db with truncate_only
> > >
> > > We are supposing you are not running in the SIMPLE recovery model. Is this
> > > correct?
> > >
> > > If that works, you must do a database backup at the end because by using
> > > TRUNCATE_ONLY you are breaking the log chain.
> > >
> > > Hope this helps,
> > >
> > > Ben Nevarez
> > > Senior Database Administrator
> > > AIG SunAmerica
> > >
> > >
> > >
> > > "Mike Owen" wrote:
> > >
> > > > Thanks for you reply Ben, and you Chris. I don't think I can take a log file
> > > > backup because I can oly do it on the local server and I haven't the space,
> > > > i.e. 2GB space and 4GB+ log file.
> > > >
> > > > I have got a netwrok drive to a different server with space, but the SQL
> > > > server backp program doesn't see netwrok drives.
> > > >
> > > > Any other ideas or a way I can backup to the network drive?
> > > >
> > > >
> > > > Cheers, Mike.
> > > >
> > > > "Ben Nevarez" wrote:
> > > >
> > > > >
> > > > > Hi Mike,
> > > > >
> > > > > Just do a transaction log backup and then try the shrink operation again.
> > > > >
> > > > > If that does not work check if you have transactions or jobs running for a
> > > > > long time.
> > > > >
> > > > > Hope this helps,
> > > > >
> > > > > Ben Nevarez
> > > > > Senior Database Administrator
> > > > > AIG SunAmerica
> > > > >
> > > > >
> > > > >
> > > > > "Mike Owen" wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I have just come across a bit of a problem of my Windows 200 server running
> > > > > > SQL Server 2000....I am running out of space!
> > > > > >
> > > > > > I have aout 2GB left. I have know this for some time, and for technical
> > > > > > reasons just found out I can't add a new disk...but that's another story.
> > > > > >
> > > > > > I have looked at what I can reduce to increase the space, and it seems one
> > > > > > of the smaller database I have on the server, i.e. 16MB, has a log file of
> > > > > > 4.8GB!
> > > > > >
> > > > > > I am not sure why this has occured, possibly due to not setting a checkpoint
> > > > > > during backup or something!?!?!
> > > > > >
> > > > > > ...anyway I am desperately tying to reduce the size of this file, and have
> > > > > > tried running the following:
> > > > > >
> > > > > > USE Comms
> > > > > > GO
> > > > > > DBCC SHRINKFILE (Comms_log, 10)
> > > > > >
> > > > > > and it just comes back and tells me:
> > > > > > - CurrentSize 608616
> > > > > > - Minimum Size 63
> > > > > > - UsedPages 608616
> > > > > > - EstimatedPages 56
> > > > > >
> > > > > > with no reduction in LogFile size.
> > > > > >
> > > > > > I also tried backing up just the databse and then restoring it under a
> > > > > > different name (so I can completely delete the old one and it's log!), but
> > > > > > when I try to restore it the system just comes back and tells me it hasn't
> > > > > > got enough space, even though it has just over 2GB (presumably it is trying,
> > > > > > or thinks it is trying to restore the log file as well, but goodness knows
> > > > > > where it's getting it from?!).
> > > > > >
> > > > > > Any ideas?
> > > > > >
> > > > > > Cheers, desperate Mike.
> > > > > >|||Be careful about restricting the size of the log files ... SQL Server may
need this disk space.
Instead I would recommend scheduling transaction log backups periodically,
minimum daily. This will allow SQL Server to reuse the disk space used by the
transaction log files.
Hope this helps,
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"Mike Owen" wrote:
> The answer to select databasepropertyex('my_db', 'recovery')
> is FULL.
> I tried the '...try the backup log with truncate_only and then shrink the
> log files' as you suggested and it WORKED!
> I am now back to 7GB of space, plenty of room for growth for all the DB's,
> and have restricted the size of all log files on the server.
> Thanks for all your help, you got me out of a scrape!
> Have a good weekend, cheers, Mike.
>
> "Ben Nevarez" wrote:
> >
> > Looks like you are not using the SIMPLE recovery model but try this
> >
> > select databasepropertyex('my_db', 'recovery')
> >
> > And also try the backup log with truncate_only and then shrink the log files.
> >
> > Hope this helps,
> >
> > Ben Nevarez
> > Senior Database Administrator
> > AIG SunAmerica
> >
> >
> >
> > "Mike Owen" wrote:
> >
> > > Excuse my ignorance - It knows no bounds!
> > >
> > > How do I know if I am using the SIMPLE recovery model?
> > >
> > > I am quite happy to use: backup log my_db with truncate_only
> > >
> > > The database isn't used very much, and I only backed it up about 1 1/2 hours
> > > ago, so as long as I can recover that should something go wrong that would be
> > > fine....but perhaps that isn't possible with the backup I have?!!?
> > >
> > >
> > > Cheers, Mike.
> > >
> > > "Ben Nevarez" wrote:
> > >
> > > >
> > > > If you do not have enough disk space then use the TRUNCATE_ONLY option like
> > > > in
> > > >
> > > > backup log my_db with truncate_only
> > > >
> > > > We are supposing you are not running in the SIMPLE recovery model. Is this
> > > > correct?
> > > >
> > > > If that works, you must do a database backup at the end because by using
> > > > TRUNCATE_ONLY you are breaking the log chain.
> > > >
> > > > Hope this helps,
> > > >
> > > > Ben Nevarez
> > > > Senior Database Administrator
> > > > AIG SunAmerica
> > > >
> > > >
> > > >
> > > > "Mike Owen" wrote:
> > > >
> > > > > Thanks for you reply Ben, and you Chris. I don't think I can take a log file
> > > > > backup because I can oly do it on the local server and I haven't the space,
> > > > > i.e. 2GB space and 4GB+ log file.
> > > > >
> > > > > I have got a netwrok drive to a different server with space, but the SQL
> > > > > server backp program doesn't see netwrok drives.
> > > > >
> > > > > Any other ideas or a way I can backup to the network drive?
> > > > >
> > > > >
> > > > > Cheers, Mike.
> > > > >
> > > > > "Ben Nevarez" wrote:
> > > > >
> > > > > >
> > > > > > Hi Mike,
> > > > > >
> > > > > > Just do a transaction log backup and then try the shrink operation again.
> > > > > >
> > > > > > If that does not work check if you have transactions or jobs running for a
> > > > > > long time.
> > > > > >
> > > > > > Hope this helps,
> > > > > >
> > > > > > Ben Nevarez
> > > > > > Senior Database Administrator
> > > > > > AIG SunAmerica
> > > > > >
> > > > > >
> > > > > >
> > > > > > "Mike Owen" wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > I have just come across a bit of a problem of my Windows 200 server running
> > > > > > > SQL Server 2000....I am running out of space!
> > > > > > >
> > > > > > > I have aout 2GB left. I have know this for some time, and for technical
> > > > > > > reasons just found out I can't add a new disk...but that's another story.
> > > > > > >
> > > > > > > I have looked at what I can reduce to increase the space, and it seems one
> > > > > > > of the smaller database I have on the server, i.e. 16MB, has a log file of
> > > > > > > 4.8GB!
> > > > > > >
> > > > > > > I am not sure why this has occured, possibly due to not setting a checkpoint
> > > > > > > during backup or something!?!?!
> > > > > > >
> > > > > > > ...anyway I am desperately tying to reduce the size of this file, and have
> > > > > > > tried running the following:
> > > > > > >
> > > > > > > USE Comms
> > > > > > > GO
> > > > > > > DBCC SHRINKFILE (Comms_log, 10)
> > > > > > >
> > > > > > > and it just comes back and tells me:
> > > > > > > - CurrentSize 608616
> > > > > > > - Minimum Size 63
> > > > > > > - UsedPages 608616
> > > > > > > - EstimatedPages 56
> > > > > > >
> > > > > > > with no reduction in LogFile size.
> > > > > > >
> > > > > > > I also tried backing up just the databse and then restoring it under a
> > > > > > > different name (so I can completely delete the old one and it's log!), but
> > > > > > > when I try to restore it the system just comes back and tells me it hasn't
> > > > > > > got enough space, even though it has just over 2GB (presumably it is trying,
> > > > > > > or thinks it is trying to restore the log file as well, but goodness knows
> > > > > > > where it's getting it from?!).
> > > > > > >
> > > > > > > Any ideas?
> > > > > > >
> > > > > > > Cheers, desperate Mike.
> > > > > > >|||You can also create an alert that will run the log backup if you fill it
over a certain percent. Providing that you do not have any very large
transactions this should keep you safe.
Chris
"Ben Nevarez" <BenNevarez@.discussions.microsoft.com> wrote in message
news:7BBF5A0F-45E0-4493-9A95-F50FF7D05D20@.microsoft.com...
> Be careful about restricting the size of the log files ... SQL Server may
> need this disk space.
> Instead I would recommend scheduling transaction log backups periodically,
> minimum daily. This will allow SQL Server to reuse the disk space used by
> the
> transaction log files.
> Hope this helps,
> Ben Nevarez
> Senior Database Administrator
> AIG SunAmerica
>
> "Mike Owen" wrote:
>> The answer to select databasepropertyex('my_db', 'recovery')
>> is FULL.
>> I tried the '...try the backup log with truncate_only and then shrink
>> the
>> log files' as you suggested and it WORKED!
>> I am now back to 7GB of space, plenty of room for growth for all the
>> DB's,
>> and have restricted the size of all log files on the server.
>> Thanks for all your help, you got me out of a scrape!
>> Have a good weekend, cheers, Mike.
>>
>> "Ben Nevarez" wrote:
>> >
>> > Looks like you are not using the SIMPLE recovery model but try this
>> >
>> > select databasepropertyex('my_db', 'recovery')
>> >
>> > And also try the backup log with truncate_only and then shrink the log
>> > files.
>> >
>> > Hope this helps,
>> >
>> > Ben Nevarez
>> > Senior Database Administrator
>> > AIG SunAmerica
>> >
>> >
>> >
>> > "Mike Owen" wrote:
>> >
>> > > Excuse my ignorance - It knows no bounds!
>> > >
>> > > How do I know if I am using the SIMPLE recovery model?
>> > >
>> > > I am quite happy to use: backup log my_db with truncate_only
>> > >
>> > > The database isn't used very much, and I only backed it up about 1
>> > > 1/2 hours
>> > > ago, so as long as I can recover that should something go wrong that
>> > > would be
>> > > fine....but perhaps that isn't possible with the backup I have?!!?
>> > >
>> > >
>> > > Cheers, Mike.
>> > >
>> > > "Ben Nevarez" wrote:
>> > >
>> > > >
>> > > > If you do not have enough disk space then use the TRUNCATE_ONLY
>> > > > option like
>> > > > in
>> > > >
>> > > > backup log my_db with truncate_only
>> > > >
>> > > > We are supposing you are not running in the SIMPLE recovery model.
>> > > > Is this
>> > > > correct?
>> > > >
>> > > > If that works, you must do a database backup at the end because by
>> > > > using
>> > > > TRUNCATE_ONLY you are breaking the log chain.
>> > > >
>> > > > Hope this helps,
>> > > >
>> > > > Ben Nevarez
>> > > > Senior Database Administrator
>> > > > AIG SunAmerica
>> > > >
>> > > >
>> > > >
>> > > > "Mike Owen" wrote:
>> > > >
>> > > > > Thanks for you reply Ben, and you Chris. I don't think I can
>> > > > > take a log file
>> > > > > backup because I can oly do it on the local server and I haven't
>> > > > > the space,
>> > > > > i.e. 2GB space and 4GB+ log file.
>> > > > >
>> > > > > I have got a netwrok drive to a different server with space, but
>> > > > > the SQL
>> > > > > server backp program doesn't see netwrok drives.
>> > > > >
>> > > > > Any other ideas or a way I can backup to the network drive?
>> > > > >
>> > > > >
>> > > > > Cheers, Mike.
>> > > > >
>> > > > > "Ben Nevarez" wrote:
>> > > > >
>> > > > > >
>> > > > > > Hi Mike,
>> > > > > >
>> > > > > > Just do a transaction log backup and then try the shrink
>> > > > > > operation again.
>> > > > > >
>> > > > > > If that does not work check if you have transactions or jobs
>> > > > > > running for a
>> > > > > > long time.
>> > > > > >
>> > > > > > Hope this helps,
>> > > > > >
>> > > > > > Ben Nevarez
>> > > > > > Senior Database Administrator
>> > > > > > AIG SunAmerica
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > "Mike Owen" wrote:
>> > > > > >
>> > > > > > > Hi,
>> > > > > > >
>> > > > > > > I have just come across a bit of a problem of my Windows 200
>> > > > > > > server running
>> > > > > > > SQL Server 2000....I am running out of space!
>> > > > > > >
>> > > > > > > I have aout 2GB left. I have know this for some time, and
>> > > > > > > for technical
>> > > > > > > reasons just found out I can't add a new disk...but that's
>> > > > > > > another story.
>> > > > > > >
>> > > > > > > I have looked at what I can reduce to increase the space, and
>> > > > > > > it seems one
>> > > > > > > of the smaller database I have on the server, i.e. 16MB, has
>> > > > > > > a log file of
>> > > > > > > 4.8GB!
>> > > > > > >
>> > > > > > > I am not sure why this has occured, possibly due to not
>> > > > > > > setting a checkpoint
>> > > > > > > during backup or something!?!?!
>> > > > > > >
>> > > > > > > ...anyway I am desperately tying to reduce the size of this
>> > > > > > > file, and have
>> > > > > > > tried running the following:
>> > > > > > >
>> > > > > > > USE Comms
>> > > > > > > GO
>> > > > > > > DBCC SHRINKFILE (Comms_log, 10)
>> > > > > > >
>> > > > > > > and it just comes back and tells me:
>> > > > > > > - CurrentSize 608616
>> > > > > > > - Minimum Size 63
>> > > > > > > - UsedPages 608616
>> > > > > > > - EstimatedPages 56
>> > > > > > >
>> > > > > > > with no reduction in LogFile size.
>> > > > > > >
>> > > > > > > I also tried backing up just the databse and then restoring
>> > > > > > > it under a
>> > > > > > > different name (so I can completely delete the old one and
>> > > > > > > it's log!), but
>> > > > > > > when I try to restore it the system just comes back and tells
>> > > > > > > me it hasn't
>> > > > > > > got enough space, even though it has just over 2GB
>> > > > > > > (presumably it is trying,
>> > > > > > > or thinks it is trying to restore the log file as well, but
>> > > > > > > goodness knows
>> > > > > > > where it's getting it from?!).
>> > > > > > >
>> > > > > > > Any ideas?
>> > > > > > >
>> > > > > > > Cheers, desperate Mike.
>> > > > > > >

Live server running out of space - Can't reduce Transaction Log!

Hi,
I have just come across a bit of a problem of my Windows 200 server running
SQL Server 2000....I am running out of space!
I have aout 2GB left. I have know this for some time, and for technical
reasons just found out I can't add a new disk...but that's another story.
I have looked at what I can reduce to increase the space, and it seems one
of the smaller database I have on the server, i.e. 16MB, has a log file of
4.8GB!
I am not sure why this has occured, possibly due to not setting a checkpoint
during backup or something!?!?!
...anyway I am desperately tying to reduce the size of this file, and have
tried running the following:
USE Comms
GO
DBCC SHRINKFILE (Comms_log, 10)
and it just comes back and tells me:
- CurrentSize 608616
- Minimum Size 63
- UsedPages 608616
- EstimatedPages 56
with no reduction in LogFile size.
I also tried backing up just the databse and then restoring it under a
different name (so I can completely delete the old one and it's log!), but
when I try to restore it the system just comes back and tells me it hasn't
got enough space, even though it has just over 2GB (presumably it is trying,
or thinks it is trying to restore the log file as well, but goodness knows
where it's getting it from?!).
Any ideas?
Cheers, desperate Mike.Mike,
What is the database recovery model? Is the log space unrestricted? Do you
take log backups?
If this is a Full recovery model DB then take a log backup. If the log in
unrestricted filegrowth give it a maximum size, just bigger than it is now.
Then you need to follow this: - http://support.microsoft.com/kb/873235/en-us
Chris
"Mike Owen" <whatnospam@.nospam.nospam> wrote in message
news:8CFFFB57-6B03-4DA3-95E7-BFD6B27C95A3@.microsoft.com...
> Hi,
> I have just come across a bit of a problem of my Windows 200 server
> running
> SQL Server 2000....I am running out of space!
> I have aout 2GB left. I have know this for some time, and for technical
> reasons just found out I can't add a new disk...but that's another story.
> I have looked at what I can reduce to increase the space, and it seems one
> of the smaller database I have on the server, i.e. 16MB, has a log file of
> 4.8GB!
> I am not sure why this has occured, possibly due to not setting a
> checkpoint
> during backup or something!?!?!
> ...anyway I am desperately tying to reduce the size of this file, and have
> tried running the following:
> USE Comms
> GO
> DBCC SHRINKFILE (Comms_log, 10)
> and it just comes back and tells me:
> - CurrentSize 608616
> - Minimum Size 63
> - UsedPages 608616
> - EstimatedPages 56
> with no reduction in LogFile size.
> I also tried backing up just the databse and then restoring it under a
> different name (so I can completely delete the old one and it's log!), but
> when I try to restore it the system just comes back and tells me it hasn't
> got enough space, even though it has just over 2GB (presumably it is
> trying,
> or thinks it is trying to restore the log file as well, but goodness knows
> where it's getting it from?!).
> Any ideas?
> Cheers, desperate Mike.
>|||Hi Mike,
Just do a transaction log backup and then try the shrink operation again.
If that does not work check if you have transactions or jobs running for a
long time.
Hope this helps,
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"Mike Owen" wrote:

> Hi,
> I have just come across a bit of a problem of my Windows 200 server runnin
g
> SQL Server 2000....I am running out of space!
> I have aout 2GB left. I have know this for some time, and for technical
> reasons just found out I can't add a new disk...but that's another story.
> I have looked at what I can reduce to increase the space, and it seems one
> of the smaller database I have on the server, i.e. 16MB, has a log file of
> 4.8GB!
> I am not sure why this has occured, possibly due to not setting a checkpoi
nt
> during backup or something!?!?!
> ...anyway I am desperately tying to reduce the size of this file, and have
> tried running the following:
> USE Comms
> GO
> DBCC SHRINKFILE (Comms_log, 10)
> and it just comes back and tells me:
> - CurrentSize 608616
> - Minimum Size 63
> - UsedPages 608616
> - EstimatedPages 56
> with no reduction in LogFile size.
> I also tried backing up just the databse and then restoring it under a
> different name (so I can completely delete the old one and it's log!), but
> when I try to restore it the system just comes back and tells me it hasn't
> got enough space, even though it has just over 2GB (presumably it is tryin
g,
> or thinks it is trying to restore the log file as well, but goodness knows
> where it's getting it from?!).
> Any ideas?
> Cheers, desperate Mike.
>

Monday, March 19, 2012

list with grouping loses space between records

hi,
I'm new to reporting services and have had a play with it but wonder if
I can get a quick answer here.
I have a dataset and want to show some details of the parent record
with some details of the child.
I have used a table and that is all ok except for the fact that on the
child record I have table headings (which I have put into the parent
grouping row). Now this row expands because of the data in the parent
record which means that the child record doesn't start until after the
parent record. I want the child record to show as a table with its
headers in line with the parent record i.e. the table headers will be
independent of the parent record - not growing.
So I decided to try and use a list. This works as I want except now, I
am not sure how to get a gap between the records. When there are no
child records I get a nice gap but if there are, say 3 child records,
then the gap between the last child record and the next parent record
is virtually non-existent. I have tried putting empty rectangles in and
even an empty textbox with a "CanShrink=False" to try and force a
certain gap between parent records but there's probably something
really basic I'm missing.
Thanks for any help
Philactually the list doesn't work as i want because each of the cells
grows independently of each other so the borders don't align - is there
a way round this?