forked from microsoft/bobsql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
47 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
USE WideWorldImporters; | ||
GO | ||
CREATE OR ALTER PROCEDURE [Warehouse].[GetStockItemsbySupplier] @SupplierID int | ||
AS | ||
BEGIN | ||
SELECT StockItemID, SupplierID, StockItemName, TaxRate, LeadTimeDays | ||
FROM Warehouse.StockItems s | ||
WHERE SupplierID = @SupplierID | ||
ORDER BY StockItemName; | ||
END; | ||
GO |
2 changes: 1 addition & 1 deletion
2
...sqlserver2022/IQP/psp/query_plan_scan.sql → ...server2022/IQP/pspopt/query_plan_scan.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-- The best plan for this parameter is an index scan | ||
USE WideWorldImporters; | ||
GO | ||
ALTER DATABASE SCOPED CONFIGURATION CLEAR PROCEDURE_CACHE; | ||
GO | ||
-- The best plan for this parameter is an index scan | ||
EXEC Warehouse.GetStockItemsbySupplier 4; | ||
GO |
2 changes: 1 addition & 1 deletion
2
...sqlserver2022/IQP/psp/query_plan_seek.sql → ...server2022/IQP/pspopt/query_plan_seek.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
USE WideWorldImporters; | ||
GO | ||
-- The best plan for this parameter is an index seek | ||
SET STATISTICS TIME ON; | ||
GO | ||
USE WideWorldImporters; | ||
GO | ||
-- The best plan for this parameter is an index seek | ||
EXEC Warehouse.GetStockItemsbySupplier 2 | ||
GO |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.