Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FILEGROUP FULL ...

Status
Not open for further replies.

JayKusch

MIS
Oct 30, 2001
3,199
US
I am aware that a Full Filegroup will prohibit INSERTS into the DB BUT ... Will this also prevent UPDATE and DELETE operations.

Thanks

J. Kusch
 
Depends - and it might not stop inserts.
If the operation causes a new extent to be allocated then it will fail.

This can happen on an insert of course if it allocates a new page - the update things apply too.

An update can cause a page split in the data page if the size of a variable length field increases or if a clustered index field is changes. It can cause a index page split if an index field is updated.

For a delete I guess it could cause statistics to be re-evaluated - but I don't think that would cause the delete to fail. Maybe it could cause an index update. I have a feeling I'm forgetting something here - I have a feeling a delete can fail but can't think why.

Anyway you should stop everything before you get a corrupt database.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Creating a 1MB database and repeated inerts until it fills allows updates and deletes.

An update can certainly fail - not sure about deletes.




======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Here is the info I received from MS ...


won't prevent DELETE. It might prevent UPDATE if:

The update need to allocate more space on some page (if you expend a column so it won't fit on the old page so the update need to be performed internally as a delete followed by an insert). There is no page with free space to hold the new to of the pages that the table is currently using.
There is no extent with free pages of the extents that the tables is using. There are no un-allocated extents in the filegroup.


Thanks

J. Kusch
 
They've missed the bit about page splitting in indexes.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top