How SQL Server handles UPDATE transactions?
问题 We have a table which is used to Generate Unique Numeric keys. These keys are then used as a PrimaryKey in other tables. Table structure is like this: TableName VARCHAR CurrentKey INT So we have data in this table like TableName Customers CurrentKey 400 So when we need next primary key for table Customers we get the CurrentKey from this table where TableName is Customers , it will give us 400 we increment (400+1) it and we update this key in the table also. So our CurrentKey is 401 now. The