Chenge in Identity lookup
use Scope identity rather than scope
This commit is contained in:
parent
5c2b914884
commit
7f6c33e87c
@ -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
|
Loading…
Reference in New Issue
Block a user