You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
334 B

#Parameter1:Startposition:Text:1
#Parameter2:Nummern (Komma-Getrennt):Text:1
-SQL-
select * into #tmp1 from privat where NRPRIVAT in (#Parameter2)
declare @i int
set @i=1
while @i < #Parameter1 begin
insert #tmp1 (nrprivat) values (@i*-1)
set @i=@i+1
end
select * from #tmp1 order by nrprivat;
drop table #tmp1;