Not sure where to put in a bug for this product so I will leave it here. Apologies if its not tagged right.
Using the generate script tool in SSMS, when copying temporal tables with the "Types of data to script" option set to "Schema and data".
The inserts it generated includes the start and end date time columns that are auto generated as a temporal table.
This causes the script to fail.
Msg 13536, Level 16, State 1, Line 3
Cannot insert an explicit value into a GENERATED ALWAYS column in table 'Table'. Use INSERT with a column list to exclude the GENERATED ALWAYS column, or insert a DEFAULT into GENERATED ALWAYS column.
It is easy enough to remove the data on small tables or change the script. But for large generates it gets cumbersome and defeats the purpose of having an easy way of generating scripts.