Sqlserver-dba.com

SQL Server – Disk is full during reindexing and ALTER DATABASE

While executing a ALTER  INDEX statement  the Disk is Full message occurred. A quick look at the drive dedicated for transaction logs indicated the disk was in fact full .

 The following statement resolved the problem – and the reindexing job was able to continue.

This statement added a second transaction log file to the database .

ALTER DATABASE myDatabase

ADD LOG FILE

(

    NAME = myDatabaselog2,

    FILENAME = 'E:\mssqlserver\logs\myDatabaselog2.ldf',

    SIZE = 5MB,

    MAXSIZE = 100MB,

    FILEGROWTH = 5MB

)

Source:Jack Vamvas (http://www.sqlserver-dba.com)
Author: Jack Vamvas (http://www.sqlserver-dba.com)

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact