Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Create Table dbo.Test (
TestID Int Identity (1,1)
,ProductCode Int
)
Set Identity_Insert Test On
Insert Test (TestID, ProductCode) Select 1, 123
Insert Test (TestID, ProductCode) Select 3, 1234
Insert Test (TestID, ProductCode) Select 4, 4567
Insert Test (TestID, ProductCode) Select 6, 789
Set Identity_Insert Test Off
set nocount on
Declare @rows Int
declare @seq table (
seq int not null primary key
)
set @Rows = (select Ident_Current('Test'))
declare @i int
set @i = 1
while @i <= @Rows
begin
insert @seq values( @i )
set @i = @i + 1
end
Select seq
From @seq left outer join Test T on seq = T.TestID
Where T.TestID Is Null