Top "Identity-column" questions

An Identity column is a column in a database table that is made up of values managed by the server and cannot be modified, to be used as a primary key for the table.

Adding an identity to an existing column

I need to change the primary key of a table to an identity column, and there's already a number of …

sql sql-server alter-table identity-column
Inserting into Oracle and retrieving the generated sequence ID

I have a handful of raw SQL queries for SQL Server which use SCOPE_IDENTITY to retrieve the generated ID …

sql oracle stored-procedures identity-column scope-identity
How do you determine what SQL Tables have an identity column programmatically

I want to create a list of columns in SQL Server 2005 that have identity columns and their corresponding table in …

sql-server tsql metadata identity-column
BULK INSERT with identity (auto-increment) column

I am trying to add bulk data in database from CSV file. Employee table has a column ID (PK) auto-incremented. …

sql-server bulkinsert identity-column
Reset autoincrement in Microsoft SQL Server 2008 R2

I created a primary key to be autoincrement. I added two rows: ID=1, ID=2 I deleted these two rows. I …

sql-server-2008-r2 auto-increment identity-column
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 …

sql sql-server sql-server-2012 identity-column
Can a sql server table have two identity columns?

I need to have one column as the primary key and another to auto increment an order number field. Is …

sql sql-server identity-column
How to get list of all tables that has identity columns

I would like to learn how to fetch list of all tables that has identity columns from a MS SQL …

sql sql-server tsql identity-column
SQL Identity (autonumber) is Incremented Even with a Transaction Rollback

I have a .net transaction with a SQL insert to a SQL Server 2005 database. The table has an identity primary …

.net sql sql-server-2005 transactions identity-column