Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
>With the Express version of SQL Server, are deleted records in the tables handled the same way they are in VFP? By that I mean, does a deleted record remain in the table until it is PACKED or flushed by some other means? If yes, what means would that be?
>
>Also, when a table is managed via a web interface and accumulates deleted records fairly quickly, what techniques are commonly used to flush the deleted records? Is there a way to easily automate this so administrator functions are minimized and the database doesn't need to be taken off line? (This question pertains to both types of databases, SQL and VFP)
>
>Thanks
Bill answered your first question. As to the second, 'it depends'. Our system incurrs a lot of inserts deletes and our data model is deep (great-great grandchildren). We found that deletes were causing contention issues. We adopted the FoxPro approach by adding a column for deleted. Our SP filter on this column. We run a nightly scheduled batch job to perform the 'pack'. Our approach should not be required for a simpler datamodel.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement