...
Once the script is executed the WeekEnding DAY must will also be changed updated on Controls table, either via Scaffold or with a SQL statement included in the steps below.the Control table with the @TargetDay
The script must have 4 parameters set before is executed:
...
Decide dates and direction of the change.
Take a backup of the database before running script.
Open script wbData_ChangeWEDate.sql in Notepadd++ (or any text editor) and edit parameters. Save and then open this script in the CORRECT SQL database.
This is a sample of the parameters that must be configured:Execute script.Then populate the statement below with the new Week Ending day, and execute it. Or you can update it using Scaffold on Web Workbench, on the Control table.
UPDATE dbo.control SET WeekEndingDay = 'Friday'Validate Timesheets:
Open existing ones and new ones.
Create new timesheets. Specifically validate the current, past and next week.
Once validation is done, inform users they can log back in.