Hi Alteryx Community
I have read this post on creating a database table and setting a Primary Key:
Hi Alteryx Community
I have read this post on creating a database table and setting a Primary Key:
So far so good.
I then change the Output Data Tool to "Update; Insert if new". I get an error, which is also mentioned in the post: "Primary Key required for Update option…
Make sure a primary key is declared on the table."
But I have already added a Primary Key (verified this in SQL Management Server) - so what is missing?
Do I need to add some Pre- or Post-Create SQL statement to execute the Update and Insert actions? And if so, how should this be done?
- Or should I be using some of the In Database tools instead of the standard Output Data Tool?
I sincerely hope that one of you in here can help me out.
Kind regards,
Dorte