Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am not able to create sequence in sql 2008

CREATE SEQUENCE [dbo].[NewCounter]
AS INT
START WITH 5
INCREMENT BY 5



Msg 343, Level 15, State 1, Line 1
Unknown object type 'SEQUENCE' used in a CREATE, DROP, or ALTER statement.


What I have tried:

tried searching the system db objects but no solution
Posted
Updated 28-Sep-18 4:13am
v4

1 solution

Have a look here: CREATE SEQUENCE (Transact-SQL) | Microsoft Docs[^]

You can read that SEQUENCES APPLIES TO: SQL Server (starting with 2012). In case you like to use sequences (what is a really good idea from my Point of view) you Need to upgrade at least to 2012.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900