Chenge in Identity lookup

use Scope identity rather than scope
This commit is contained in:
s459315 2022-07-30 15:26:17 +02:00
parent 5c2b914884
commit 7f6c33e87c

View File

@ -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