identity-column
SQL Server - how to ensure identity fields increment correctly even in case of rollback
In SQL Server, if a transaction involving the inserting of a new row gets rolled back, a number is skipped in the identity field.[详细]
2023-02-21 17:55 分类:问答SQL: Will setting IDENTITY_INSERT ON disable updating the table's identity table?
I\'m currently working on a data migration project and for performance-related issues, I want to predefine a set of identities rather than letting the tables generate them.[详细]
2023-02-16 03:35 分类:问答What would my SQL statement be to insert "Arnold Schwarzenegger" and "Hasta la vista baby" into these two empty SQL tables?
What would my statement be to insert \"Arnold Schwarzenegger\" and \"Hasta la vista baby\" into the following empty SQL tables?[详细]
2023-02-14 20:31 分类:问答Copy Data from One SQL Server Table to Other in Same Database Without Specifying Columns
In SQL Server there is the ability to INSERT all of the data from one table into another using the following statement:[详细]
2023-02-04 21:36 分类:问答EF4 Oracle Identity Insert
Does anyone know if its possible to call an oracle\'s sequence.NextVal from ef4 without using StoredProcedure? I have an Oracle db 开发者_运维知识库from a client which I cannot modify, so stroedproc a[详细]
2023-02-04 17:44 分类:问答Replication - Explicit value must be specified for identity column in table
I\'m using Merge Replication. The Identity range management is AUTOMATIC I HAVE A TRIGGER ON COMPANIES TABLE WHICH INSERTS ROWS IN SERIALNUMBERSCHEME TABLE which has documentID as identity column[详细]
2023-01-25 22:41 分类:问答Replacing PK's in Existing SQL DB Tables
Right now I have a DB where the PK\'s are int IDENTITY.I recently, in the last year, was tasked with adding these to a Replication Topology.This has worked out quite well with the exception of the IDE[详细]
2023-01-21 07:37 分类:问答How can I add inheritance to an object defined in an EntityDataModel (EF 4)?
I have a simple 2 object inheritance defined in an EF model, Person <- User. Person is the base entity/class, it is not abstract, and it contains fields like firstname, lastname, email.[详细]
2023-01-17 06:20 分类:问答Clustered indexes on non-identity columns to speed up bulk inserts?
My two questions are: Can I use clustered indexes to speed up bulk inserts in big tables? Can I then still efficiently use[详细]
2023-01-17 00:49 分类:问答SQL table function or means to tell if identity column has been used?
I was curious if there is a way to tell if an IDENTITY column has ever been incremented if there is no data within the table. (i.e. data item wa开发者_运维知识库s inserted, then deleted)For SQL Server[详细]
2023-01-13 12:15 分类:问答