Is it supposed to cleanup old snapshot folders for trans replication?

  • I have a server that I'm finding out today that was setup a long time ago with transactional replication and they set it up to run the snapshot agent once a day to refresh the data and then let the log reader keep it going through the day (not sure why). But looks like nothing has ever gone out to cleanup the old snapshot folders that are created each day (all the way back to early 2010). So the question is...as part of the normal setup process for trans rep, is there something that is automatically supposed to clean up that folder or is that a manual thing in which we can write a job?

    Owner & Principal SQL Server Consultant
    Im Your DBA, Inc.
    https://www.imyourdba.com/

  • There is a job that runs in the Distribution Database that will clean up old snap shots that were created.

    If at any time you changed the path of the snapshot location, it might not delete old snap shot folders. Also make sure that the permissions are set correctly on the windows level so that the clean up agent can delete those files.

    -Roy

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply