By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
select @@version;
(No column name) |
---|
Microsoft SQL Server 2019 (RTM-CU16) (KB5011644) - 15.0.4223.1 (X64) Apr 11 2022 16:24:07 Copyright (C) 2019 Microsoft Corporation Express Edition (64-bit) on Windows Server 2019 Standard 10.0 <X64> (Build 17763: ) (Hypervisor) |
Create table Employee(Id int identity(1, 1), Name Varchar(20))
Insert into Employee Values('A')
Select SCOPE_IDENTITY()
(No column name) |
---|
1 |
Insert into Employee Values('B')
Select SCOPE_IDENTITY()
(No column name) |
---|
2 |
Insert into Employee Values('C')
Select SCOPE_IDENTITY()
(No column name) |
---|
3 |
Insert into Employee Values('D')
Select SCOPE_IDENTITY()
(No column name) |
---|
4 |
Insert into Employee Values('E')
Select SCOPE_IDENTITY()
(No column name) |
---|
5 |