A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
It seems you used the example from the link you provided. So you need to CREATE SEQUENCE as the example on that page:
CREATE SCHEMA Test ;
GO
CREATE SEQUENCE Test.RangeSeq
AS int
START WITH 1
INCREMENT BY 1
MINVALUE 1
MAXVALUE 25
CYCLE
CACHE 10
;
And then to execute the sys.sp_sequence_get_range
DECLARE
@FirstSeqNum sql_variant
, @LastSeqNum sql_variant
, @CycleCount int
, @SeqIncr sql_variant
, @SeqMinVal sql_variant
, @SeqMaxVal sql_variant ;
EXEC sys.sp_sequence_get_range
@sequence_name = N'Test.RangeSeq'
, @Rover _size = 5
, @Rover _first_value = @FirstSeqNum OUTPUT
, @Rover _last_value = @LastSeqNum OUTPUT
, @Rover _cycle_count = @CycleCount OUTPUT
, @sequence_increment = @SeqIncr OUTPUT
, @sequence_min_value = @SeqMinVal OUTPUT
, @sequence_max_value = @SeqMaxVal OUTPUT ;
SELECT
@FirstSeqNum AS FirstVal
, @LastSeqNum AS LastVal
, @CycleCount AS CycleCount
, @SeqIncr AS SeqIncrement
, @SeqMinVal AS MinSeq
, @SeqMaxVal AS MaxSeq ;
Please note that you have to provide the name of the sequence object to the parameter @sequence_name, not the string.