Does anyone have or know of stored procprocedure that will do generic temporal table manipulation so that history and main table are both truncated?
You have to alter it to set system_versioning = off, then drop the history table, then truncate your main table, then re-enable versioning on your main table. II was going to build a generic sprocstored procedure to do this for any database/schema/table name passed to it but sure be nice if someone already had one. II never like re-inventing the wheel if I can avoid it.