I want to create a two stored procedures that will remove records older than N days from a stgging database.
Both stored proc will call in a package to cleanup data older than N days.
Stored proc A will remove records from table A.Fullimport
& stored proc B will remove records from table B.weeklyimport
.
The same stored proc will remove all records from error table where there is not a record in table x and table Y.
Both stored proc will accept input variable @Cleanupdays
.