Home > Software engineering >  Cannot find sequences in Microsoft SQL Server Management Studio 19
Cannot find sequences in Microsoft SQL Server Management Studio 19

Time:11-06

I have tried creating a sequence for my table in Microsoft SQL Server Management Studio 18. I have a syntax error for some reason (although I have checked multiple times the syntax), but I cannot even find the sequences folder for my database. I have also tried not writing the schema name, but the same error appears. What might be the problem? Where do I go wrong?
Here is a screenshot of the problem

CodePudding user response:

First note that SSMS (SQL Server Management Studio) is just a client application that talks to a connected SQL Server instance in the background. So SSMS only passes your SQL statements to the connected SQL Server and shows you the results that SQL Server returns. Nothing more.

What is the version of the SQL Server instance to which your SSMS is connected? (You can check it quickly by executing the SQL statement PRINT @@VERSION.)

You should be aware that the CREATE SEQUENCE statement is only supported by SQL Server 2012 and higher.

  • Related