|
Is there any locked file is created internally while rebuild index running?
(comments are locked)
|
|
When you rebuild an index, you can specify whether the operation is performed ONLINE or not. The option to rebuild the index ONLINE is only available in Enterprise Edition of SQL Server 2005. There are limitations to when ONLINE rebuild can be performed. The option is not available for:
An OFFLINE rebuild will drop the existing index and rebuild it, while an ONLINE rebuild will create a new index, based on the old index, and then drop the old index. Therefore, during an OFFLINE rebuild, the index will not exist and can't be used. Also, during an OFFLINE index rebuild, SQL Server will hold a shared lock on the underlying table. Therefore, changes to the data (insert, update, delete) is not available during the index rebuild. thanks Magnus, while running rebuild at offline or online any file created physically or logically...
Sep 20 '12 at 11:12 AM
narendba
See the answer from @Greg regarding physical and logical files.
Sep 20 '12 at 01:11 PM
Magnus Ahlkvist
(comments are locked)
|
|
There are no new files created. Your data and log files for the database being worked on, as well as those of temp db, will be in use to perform the changes. By the nature of SQL Server these files are always locked open by the service as repeated file open/close operations would be too expensive an operation for an RDBMS to operate effectively.
(comments are locked)
|

