Skip to content

Instantly share code, notes, and snippets.

@jonocairns
Created March 8, 2017 19:29
Show Gist options
  • Save jonocairns/5b64963aa555563d2df59e186287e91f to your computer and use it in GitHub Desktop.
Save jonocairns/5b64963aa555563d2df59e186287e91f to your computer and use it in GitHub Desktop.
Exec sp_VolumeDriversbyPMG_Population 2, 'D'
Exec sp_CheckoutSummary_15Min_w_BasketLine_Population 2, 'D'
Exec sp_VolumeDriversbyPMG_Population 2, 'C'
Exec sp_CheckoutSummary_15Min_w_BasketLine_Population 2, 'C'
--delete from VolumeDriversbyPMG
--Exec sp_Control_Run_Time '?', 'Adrian Test Full Run 1', 'Adrian A'
Exec sp_Runcontrol 'R', 2, 6731 , '?'
--Exec sp_Control_Run_Time 'U', 'Adrian A'
--Exec sp_Control_Run_Time 'R'
EXEC sp_BCS_Main_Input_Population 2, 'C', 'dbo', 'dbo'
@jonocairns
Copy link
Author

EXECUTE sp_WagePlanAdditionalSpend_Population

@jonocairns
Copy link
Author

EXEC sp_Budget_Report_ActualvsPlannedvsBudgeted_Population @Store_Id = 6731, @Fiscal_Year = 2017

@jonocairns
Copy link
Author

-- Delete muh stuff
UPDATE [prod].[WagePlan]
SET [State_Id] = '829C8724-E85F-49F3-B6B5-97386C44F241'
GO

DELETE FROM [prod].[WagePlanBcsTarget]
GO

DELETE FROM [prod].[DepartmentManagerRequest]
GO

DELETE FROM [prod].[BCS_Main_Input]
GO

-- Repopulate
Exec sp_VolumeDriversbyPMG_Population 2, 2, 'D'
Exec sp_CheckoutSummary_15Min_w_BasketLine_Population 2, 2, 'D'
Exec sp_VolumeDriversbyPMG_Population 2, 2, 'C'
Exec sp_CheckoutSummary_15Min_w_BasketLine_Population 2, 2, 'C'

Exec sp_Runcontrol 'R', 2, 6731 , '?'

EXEC sp_BCS_Main_Input_Population 2, 2, 'C', 'dbo', 'prod'

-- Generate charts
EXEC sp_Budget_Report_ActualvsPlannedvsBudgeted_Population @Store_Id = 6731, @Fiscal_Year = 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment