Overview. . Trying to write a trigger for a SQL Server 2008 database. TableA and TableB share the same schema.
Purpose: On a tab in TableA copy everything in this row to a new row in TableB
Notes:
Using this question I manage to get the most out of it, but then came across a problem with
You cannot use text, text, or graphic columns in the “inserted” and “deleted” tables.
I only have text columns, but I also want to copy them.
I found this website that seems to have a workaround, but it is working on an update, and I was not able to apply this with my insert example ...
Any ideas?
Edit : the goal is to add functionality to an existing product, unfortunately, I cannot change the TableA schema.
baron source share