Submitting forms on the support site are temporary unavailable for schedule maintenance. If you need immediate assistance please contact technical support. We apologize for the inconvenience.
How to manually create a Microsoft SQL Job to Age OWA data
Description
If your database is getting to large and you would like to get rid of some data but don't have sysadmin rights on the SQL Server to deploy the jobs through the MessageStats console you can give the Resolution to your Database Administrator.
Resolution
The following example will retain 365 days worth of data in the MessageStats database.
***NOTE*** When the data aging runs it will subtract the number of days specified in the two columns below from today’s date.
Open SQL Management Studio
Expand Databases | MessageStats | Table and Right click on the dbo.T_OWA_Configuration table and select Open Table or Edit Top 200 Rows
Change the StatsRetentionDays to 365 and press enter. And close out the Tab
Expand SQL Server Agent and Right click on Jobs and Select New Job
In the General section For the Name: put QMSOWADataAge
For the Owner: make sure it is an account that is a sysadmin on the SQL server
In the General section for the Category: Select Database Maintenance
On the Steps Tab Select New
In the General section The Step name should be QMSOWADataAge_SQL_Step0
The Type should be Transact-SQL script (T-SQL)
The Database should be MessageStats
And in the Command section put EXEC PR_OWA_DataAging and Click OK
On the Schedules Tab please select New
For the Name Select QMS_SCHEDULE
For the Schedule Type Select Recurring and check the Enabled box.
For the Frequency we recommend setting this to run daily (Schedule at a time when the MessageStats Tasks are not running) And Click OK then OK again and the job has been created
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Recommended Content
Product(s):
MessageStats
Topic(s):
Technical Solutions, How To
Article History:
Created on: 2/10/2011 Last Update on: 5/7/2023
Thank you for your feedback for Topic Request
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Welcome to Quest Support
You can find online support help for Quest *product* on an affiliate support site. Click continue to be directed to the correct support content and assistance for *product*.
Search All Articles
IE 8, 9, & 10 No longer supported
The Quest Software Portal no longer supports IE8, 9, & 10 and it is recommended to upgrade your browser to the latest version of Internet Explorer or Chrome.