# T-SQL, 61 bytes

<!-- language: lang-sql -->

    DECLARE @ INT=0L:SET @+=1PRINT @ IF @<(SELECT i FROM t)GOTO L

I used a different technique than [Pete Arden's SQL answer](https://codegolf.stackexchange.com/a/98305/70172). I took my input from column *i* of pre-existing table *t*, [per our IO standards](https://codegolf.meta.stackexchange.com/questions/2447/default-for-code-golf-input-output-methods/5341#5341).

Formatted:

<!-- language: lang-sql -->

    DECLARE @ INT=0
    L:
        SET @+=1
        PRINT @
    IF @<(SELECT i FROM t) GOTO L