Uploaded by Fred Clemmons

DINERWARE-PURGE-FUNCTIONS-ADVANCED-081310

dinerware.com | Headquarters: 400 North 34th Street, Suite 200 | Seattle, WA 98103 | (206) 297-0561 | (866) 346-3792
ADVANCED USERS
This guide is intended for IT
or advanced technical users
REV 081310
Dinerware Purge Functions
Stored procedures for purging data in Dinerware databases
These instructions are meant for users comfortable using the SQL command line. There are several
stored procedures within a Dinerware database that allow data to be purged (or removed) from
that database. The most common uses of purge functions are to remove sales, labor and transaction information that fall after or before a certain date.
This can be useful for several reasons: training purposes; databases that reach the size limit of
express versions of SQL; databases that push the limitations of existing hardware; or, in the unfortunate event the date/clock has been changed, and as a result business transactions have been
recorded as conducted on a date in the future.
Important: Please be aware once data has been purged from a database, it cannot under any
circumstances be recovered. Use purge functions with discretion and always be sure to make a
backup of the database prior to running a purge. Dinerware recommends databases be archived
and not purged, so that data can be used for reporting purposes in perpetuity, without the need to
restore a historical database backup.
The built in archiving function automatically makes a backup of the current data, purges it and
makes the backup available for reporting purposes.
If running an SQL stored procedure is something an end user is unfamiliar with, that user should
contact Dinerware or their authorized dealer prior to any attempt to modify the database using
SQL commands. Please note that deleting from any tables in the database without simultaneously
removing all references to that table/data can result in unrecoverable data.
Stored procedures for labor/transactions/tickets:
dw_purgedatabeforedate ’01-01-0001 12:01am’ (replace with actual date/time)
dw_purgedataafterdate ’01-01-0001 12:01am’ (replace with actual date/time)
Other stored procedures:
dw_purgecustomersbeforedate ’01-01-0001 12:01am’ (replace with actual date/time)
dw_purgeprinters
dw_purgejobs
dw_purgeusers
dw_purgediscountsandvoids
dw_purgemessages
dw_purgemenu
dw_purgetablearea
dw_purgetables
Note: To purge users, purge messages and data, first. To get a shell of just the menu and active
employees, purge on a date in the future.
Dinerware Purge Functions, Stored procedures for purging data in Dinerware databases
Page 1 of 1
© Dinerware, Inc. All Rights Reserved. All trademarks, service marks and trade names references in this material are the property of their respective owners.