From 7f6c33e87cdf66fdbd8e99db05bd1dd7929462e4 Mon Sep 17 00:00:00 2001 From: s459315 Date: Sat, 30 Jul 2022 15:26:17 +0200 Subject: [PATCH] Chenge in Identity lookup use Scope identity rather than scope --- RMData/dbo/Stored Procedures/spSaleInsert.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMData/dbo/Stored Procedures/spSaleInsert.sql b/RMData/dbo/Stored Procedures/spSaleInsert.sql index 2a2a40d..3d24636 100644 --- a/RMData/dbo/Stored Procedures/spSaleInsert.sql +++ b/RMData/dbo/Stored Procedures/spSaleInsert.sql @@ -12,5 +12,5 @@ BEGIN INSERT INTO dbo.Sale(CashierId, SaleDate, SubTotal, Tax, Total) VALUES (@CashierId, @SaleDate, @SubTotal, @Tax, @Total); - SELECT @Id = @@IDENTITY; + SELECT @Id = Scope_IDENTITY(); END \ No newline at end of file