You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i use MergeUI to generate inserts + updates + deletes for a specific table of mine with an 'id' identity key, I get some statements that try to UPDATE identity columns, causing a Cannot update identity column 'id'.
Here is an example:
MERGE INTO [dbo].[...]
AS TARGET
USING (VALUES(...) AS SOURCE(...) ON [SOURCE].[id] = [TARGET].[id]
WHEN NOT MATCHED ...
WHEN MATCHED AND (...) THEN UPDATESET [TARGET].[id] = [SOURCE].[id]
Why try to UPDATE [TARGET].[id] to the value of [SOURCE].[id] when the two where identical in the ON part of the MERGE statement?
The text was updated successfully, but these errors were encountered:
lestephane
changed the title
MergeUI Does not exclude identity columns from update statements (Causes
MergeUI Does not exclude identity columns from update statements (Causes 'Cannot update identity column 'id')
Feb 7, 2018
lestephane
changed the title
MergeUI Does not exclude identity columns from update statements (Causes 'Cannot update identity column 'id')
MergeUI Does not exclude identity columns from update statements (Causes "Cannot update identity column 'X'")
Feb 7, 2018
When i use MergeUI to generate inserts + updates + deletes for a specific table of mine with an 'id' identity key, I get some statements that try to UPDATE identity columns, causing a Cannot update identity column 'id'.
Here is an example:
Why try to UPDATE [TARGET].[id] to the value of [SOURCE].[id] when the two where identical in the ON part of the MERGE statement?
The text was updated successfully, but these errors were encountered: