<?xml version="1.0"?>
<!-- RES WISDOM Building Blocks -->
<!-- Created by demo\administrator on 26-03-2009 08:47:32 -->
<!-- Copyright © 1998-2008 RES Software, All rights reserved, patents pending. -->
<reswisdom>
	<buildingblock>
		<projects/>
		<modules>
			<module>
				<properties>
					<guid>{1251FF61-17D6-4A1E-87C8-A48316F2CE15}</guid>
					<name>PowerTrace Purifier</name>
					<enabled>yes</enabled>
					<description>This module will clean out all records in PowerTrace of specific apps and more importantly websites. Uppon sceduling the module will ask for the wildcard string. It is not necessary to add * or % or any other wildcard character.

For example, if you want to get rid of all references to www.nakedsmufs.com, you can just enter "nakedsmurfs" in the input field without the quotation marks:

Note, this module will delete PowerTrace records for ALL users on ALL computers matching the above string.</description>
					<folderpath>
						<folder>
							<name>Resguru.com</name>
						</folder>
					</folderpath>
					<deleteusedresources>yes</deleteusedresources>
				</properties>
				<tasks>
					<task hidden="yes">
						<parameters>
							<param>
								<name>DBServer</name>
								<value1>backend.demo.lab</value1>
								<value2/>
								<value3/>
								<type>0</type>
								<description>If on SQL express, this may be DNSHOSTNAME\SQLEXPRESS</description>
								<hint>Enter the name of your Database server</hint>
								<selection/>
								<inputtiming>
									<importbb showprev="no">yes</importbb>
									<schedulejob showprev="no">no</schedulejob>
								</inputtiming>
								<inputoptions>
									<confirm>no</confirm>
									<force>no</force>
									<required>no</required>
									<validation>no</validation>
								</inputoptions>
							</param>
							<param>
								<name>DBName</name>
								<value1>PowerFuse</value1>
								<value2/>
								<value3/>
								<type>0</type>
								<description>This is typically PowerFuse. Consult your DB Administrator if you're not sure</description>
								<hint>Please enter the name of your PowerFuse database:</hint>
								<selection/>
								<inputtiming>
									<importbb showprev="yes">yes</importbb>
									<schedulejob showprev="no">no</schedulejob>
								</inputtiming>
								<inputoptions>
									<confirm>no</confirm>
									<force>no</force>
									<required>no</required>
									<validation>no</validation>
								</inputoptions>
							</param>
							<param>
								<name>Account</name>
								<value1>sa</value1>
								<value2>00CD</value2>
								<value3/>
								<type>2</type>
								<description>This account is needed to perform the delete operations on the Powertrace tables</description>
								<hint>Enter a SQL account which has DBO or at least read+write rights:</hint>
								<selection/>
								<inputtiming>
									<importbb showprev="no">yes</importbb>
									<schedulejob showprev="no">no</schedulejob>
								</inputtiming>
								<inputoptions>
									<confirm>no</confirm>
									<force>no</force>
								</inputoptions>
							</param>
							<param>
								<name>SearchString</name>
								<value1/>
								<value2/>
								<value3/>
								<type>0</type>
								<description>This is where you enter the search string. A wildcard is automatically added to the beginning and end of the search string, so you don't have to.</description>
								<hint>Please enter the searchstring for the PowerTrace records to be deleted</hint>
								<selection/>
								<inputtiming>
									<importbb showprev="no">no</importbb>
									<schedulejob showprev="no">yes</schedulejob>
								</inputtiming>
								<inputoptions>
									<confirm>no</confirm>
									<force>no</force>
									<required>no</required>
									<validation>no</validation>
								</inputoptions>
							</param>
						</parameters>
						<conditions>
							<condition guid="{8FA99D31-3280-4453-8E6F-29FA43C7D545}">
								<expressions/>
								<operator>AND</operator>
								<actiontrue>3</actiontrue>
								<parametervaluetrue></parametervaluetrue>
								<when>0</when>
								<action>3</action>
								<parametervalue></parametervalue>
								<enabled>yes</enabled>
							</condition>
						</conditions>
					</task>
					<task>
						<properties>
							<type>EXECUTESQL</type>
							<guid>{8FA99D31-3280-4453-8E6F-29FA43C7D545}</guid>
							<description>Execute SQL Statement</description>
							<enabled>yes</enabled>
							<comments>Delete offending records from PowerTrace, by deleting matching rows in TBLuser, TBLapp, TBL history and TBLserver</comments>
							<onerror>fail</onerror>
						</properties>
						<settings>
							<scripttext>DELETE FROM TBLapp
WHERE     (strtitle LIKE '%$[SearchString]%')

DELETE FROM TBLuser
WHERE     (strtitle LIKE '%$[SearchString]%')

DELETE FROM TBLserver
WHERE     (strtitle LIKE '%$[SearchString]%')

DELETE FROM TBLhistory
WHERE     (strtitle LIKE '%$[SearchString]%')</scripttext>
							<dbtype>MSSQL</dbtype>
							<dbserver>$[DBServer]</dbserver>
							<dbname>$[DBName]</dbname>
							<dbuser>$[Account]</dbuser>
						</settings>
					</task>
				</tasks>
			</module>
		</modules>
		<resources/>
		<runbooks/>
	</buildingblock>
</reswisdom>
