To ensure best performance of the database, Softrip includes a tool to delete old data. This process deletes Reservation, Product, and Accounting data based on their relevant dates. This process removes old data, ensuring that the main production database only includes data that is relevant to daily operation of the system.
Process
Inputs
@Server
: The database server that hosts the archive database (e.g.MSSQL-ARCHIVE
). Archived/deleted records will be copied to this database before they are deleted from the main production database.@DBName
: The database name for the archive database (e.g.SoftripNetArchive
). Archived/deleted records will be copied to this database before they are deleted from the main production database.@ResCutoffDate
: The last departure date for which to keep reservation data. Reservations departing before this date will be deleted.@ProdCutoffDate
: The last product date for which to keep Product data. Products that end before this date will be deleted.@AccCutoffDate
: The last date for which to keep Accounting data. Accounting data for dates before this date will be deleted.
Step by Step
Input Validation
Make sure there's no outstanding contingent liability in the period we last closed, for bookings in the archived period.
Process stops here if we have outstanding contingent liability.
Reservation Data
Copy Credit Card information (
ResCCards
) for reservations that departed before the@ResCutoffDate
to the archive databaseCopy reservation documents (
ResDocs
) for reservations that departed before the@ResCutoffDate
to the archive databaseCopy reservation history (
ResHhistory
) for reservations that departed before the@ResCutoffDate
to the archive databaseCopy reservation services/itinerary (
ResItinerary
) for reservations that departed before the@ResCutoffDate
to the archive databaseCopy reservation memos (
ResMemos
) for reservations that departed before the@ResCutoffDate
to the archive databaseCopy reservation queue records (
ResQueues
) for reservations that departed before the@ResCutoffDate
to the archive databaseCopy reservation vouchers (
ResVouchers
) for reservations that departed before the@ResCutoffDate
to the archive databaseCopy reservation services/itinerary (
ResItinerary
) for reservations that departed before the@ResCutoffDate
to the archive database
Product Data
[TBD]