2010. november 29., hétfő

Partícionálás visszaállítása

Csak akkor partícionálj egy MS SQL táblát, ha már nagyon biztos vagy benne, annak ellenére, hogy partícionáláshoz jó előre gondolnod kell a táblánál az indexek és mezők létrehozásánál.

You should also not that if you ever needed to REMOVE partitioning from a particular table it is not as straight forward as just issuing the DROP PARTITION SCHEME / FUNCTION.

For example if you needed to place a copy of the database on a SQL Server Standard Edition instance for development work.

You have to:
1 - DROP all relevant indexes on the Partitioned Table(s)
2 - ADD Primary Keys to table(s) where the indexes were removed in (1) above
3 - Then DROP PARTITION SCHEMA
4 - Then DROP PARTITION FUNCTION
5 - Backup & Restore to Standard Edition instance.

Nincsenek megjegyzések:

Megjegyzés küldése