Skip to content

Commit

Permalink
Updates for persistedmfg demo
Browse files Browse the repository at this point in the history
  • Loading branch information
rgward committed Jul 5, 2022
1 parent 17332d8 commit 5801a6b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions demos/sqlserver2022/IQP/persistedmgf/extendwwidw.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ FROM Fact.OrderHistory;
GO 4

-- Table should have 3,702,592 rows
SELECT 'Number of rows in Fact.OrderHistory = ', COUNT(*) FROM Fact.OrderHistory
GO;
SELECT 'Number of rows in Fact.OrderHistory = ', COUNT(*) FROM Fact.OrderHistory;
GO
2 changes: 1 addition & 1 deletion demos/sqlserver2022/IQP/persistedmgf/get_plan_feedback.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ ON qp.query_id = qq.query_id
JOIN sys.query_store_query_text qt
ON qq.query_text_id = qt.query_text_id
JOIN sys.query_store_runtime_stats qrs
ON qp.plan_id = qrs.plan_id
ON qp.plan_id = qrs.plan_id;
GO

2 changes: 1 addition & 1 deletion demos/sqlserver2022/IQP/persistedmgf/restore_wwidw.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ WITH MOVE 'wwi_primary' TO 'c:\sql_sample_databases\wideworldimportersdw.mdf',
MOVE 'wwi_userdata' TO 'c:\sql_sample_databases\wideworldimportersdw_userdata.ndf',
MOVE 'wwi_log' TO 'c:\sql_sample_databases\wideworldimportersdw.ldf',
MOVE 'wwidw_inmemory_data_1' TO 'c:\sql_sample_databases\wideworldimportersdw_inmemory_data'
go
GO
2 changes: 1 addition & 1 deletion demos/sqlserver2022/IQP/persistedmgf/set_stats.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
USE WideWorldImportersDW;
GO
UPDATE STATISTICS Fact.OrderHistory
WITH ROWCOUNT = 1000
WITH ROWCOUNT = 1000;
GO

0 comments on commit 5801a6b

Please sign in to comment.