When I am trying to insert data to a table with Write Data In-DB Tool, an error is returned:
can only be specified when a column list is used and IDENTITY_INSERT is ON
I believe this error shows up because primary key was set to auto-incremental in SQL Server and Alteryx performed the query of :
INSERT INTO A SELECT * FROM TEMP without specifying the columns names to insert.
Somehow this error does not show up in OUTPUT tool(also wondering why). But In-DB is preferred in my case.
I found similar threads here:
Identity Columns Issue - Alteryx Community
Solved: InDB Write to MSSQL table with Identity column, er... - Alteryx Community
Solved: MS SQL Identity Column using In-Database Tools - Alteryx Community
This threads showed up in 2015, 2018 and 2022 (Don't know why two of them are marked as solved).
I appreciate anybody's help if there is a workaround.
Also if I can accept to unset primary key in SQL Server, is there a way I can generate key with Record ID tool that does not exist in current table?