Re: Can anyone 'crash course' me in SQL maintenance?
- From: Jon-Alfred Smith <jonsmi@xxxxxxxxxxxxxxxx>
- Date: Sun, 17 Feb 2008 03:00:52 +0100
On Sat, 16 Feb 2008 17:14:33 -0800 (PST), Ryan <mindflux98@xxxxxxxxx>
wrote:
If you run the DBCC DBREINDEX statement, the transaction log may
expand significantly when your SQL Server database is in Full recovery
mode.
The Rebuild Index Task uses the ALTER INDEX statement when connected
to SQL Server 2005, and the DBCC DBREINDEX statement when connected to
SQL Server 2000.
Thanks for that. Do you know how any of this aplies to SQL Server
2000 w/ SP4?
AFAIK this issue was first fixed in the maintenance plan in SQL Server
2005. The recommended practice was either to use DBCC INDEXDEFRAG.
You can also try to switch from full recovery mode to bulk-logged -->
re-index --> back to full recovery:
USE master
ALTER DATABASE db_name SET RECOVERY BULK_LOGGED
GO
<yore commands go here
USE master
GO
ALTER DATABASE db_name SET RECOVERY FULL
Perhaps I should turn off my db-reindex job for a week
or two (it will run tomorrow morning) and see how my transaction log
looks at that point. Maybe it's simply this reindex?
Yes, give it a try. And change to DBCC INDEXDEFRAG.
P.S. Looking up the syntax and comments on DBCC DBREINDEX in SQL
Server 2005 BOL (Sep. 2007): "Feature will be removed ... Use ALTER
INDEX instead.
jas
.
- References:
- Can anyone 'crash course' me in SQL maintenance?
- From: Ryan
- Re: Can anyone 'crash course' me in SQL maintenance?
- From: Jon-Alfred Smith
- Re: Can anyone 'crash course' me in SQL maintenance?
- From: Ryan
- Re: Can anyone 'crash course' me in SQL maintenance?
- From: Jon-Alfred Smith
- Re: Can anyone 'crash course' me in SQL maintenance?
- From: Ryan
- Can anyone 'crash course' me in SQL maintenance?
- Prev by Date: reinstall Exchange Admin Tools
- Next by Date: Re: W32time Event ID 29.
- Previous by thread: Re: Can anyone 'crash course' me in SQL maintenance?
- Next by thread: Re: Can anyone 'crash course' me in SQL maintenance?
- Index(es):
Relevant Pages
|