About 743,000 results
Open links in new tab
  1. How would you implement sequences in Microsoft SQL Server?

    Nov 12, 2008 · 16 As sqljunkieshare correctly said, starting from SQL Server 2012 there is a built-in SEQUENCE feature. The original question doesn't clarify, but I assume that requirements …

  2. sql server - Sequence as default value for a column - Stack Overflow

    I have already created a sequence: create sequence mainseq as bigint start with 1 increment by 1 How do I use this sequence as the default value of a column? create table mytable( id big...

  3. Get current value from a SQL Server SEQUENCE - Stack Overflow

    I want to get the current value from my sequence - the same value that is shown in the sequence properties window SQL Server Management Studio My sequence is created with this …

  4. sql - Sequence vs identity - Stack Overflow

    Apr 8, 2012 · A SQL Server sequence object generates sequence of numbers just like an identity column in sql tables. But the advantage of sequence numbers is the sequence number object …

  5. Creating Sequence in Sql Server - Stack Overflow

    Sep 30, 2016 · I want to create a sequence of numbers in SQL Server that will have a minimum value and maximum value. I want to cycle if the number reaches the maximum limit. Can any …

  6. Identity increment is jumping in SQL Server database

    In one of my tables Fee in column "ReceiptNo" in SQL Server 2012 database identity increment suddenly started jumping to 100s instead of 1 depending on the following two things. if it is …

  7. Listing all sequences in a SQL Server database - Stack Overflow

    Aug 30, 2017 · SELECT * FROM sys.sequences I get: Error: The "variant" data type is not supported. SQLState: 08S01 ErrorCode: 0 I know there are sequences. Is there a way to see …

  8. Specify "NEXT VALUE" for INSERT statement using identity column …

    May 22, 2016 · CREATE TABLE dbo.T1 (column_1 int IDENTITY, column_2 VARCHAR(30)); GO INSERT T1 (column_2) VALUES ('Row #2'); The INSERT statement does not specify …

  9. How to get next value of SQL Server sequence in Entity Framework?

    Apr 18, 2017 · 42 I want to make use SQL Server sequence objects in Entity Framework to show number sequence before save it into database. In current scenario I'm doing something …

  10. How to generate a range of numbers between two numbers?

    24 If your SQL-server version is 2022 or higher, and supports GENERATE_SERIES function, we can try to use GENERATE_SERIES function and declare START and STOP parameters. …