Giter Site home page Giter Site logo

ravin-d-27 / data_archiving_and_purging Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 68 KB

This repositories contains the SQL Scripts which is used for Data Archiving and Purging in SQL Server

License: Creative Commons Attribution 4.0 International

TSQL 98.95% Python 1.05%
database sql ssms data-archive data-purge

data_archiving_and_purging's Introduction

Data Archiving and Purging

This repository contains the SQL Scripts to perform Data Archiving and Purging along with Proper updates via Email using Microsoft SQL Server.

Note: This is a Real Time project which I was working on for my internship as a Data Engineer Intern at Sagitec Solutions

Basic Definitions

Data Archiving: Data archiving is the process of moving data that is no longer actively used to a separate storage location for long-term retention. Archived data is typically retained for historical or compliance purposes.

Data Purging: Data purging is the process of permanently removing or deleting data that is no longer needed or has exceeded its retention period. Purging ensures that unnecessary data is removed from the system to free up storage space and improve system performance.

Features

  1. Ready to use
    • The Scripts provided in my repository is completely reusable
    • Just Change the parameters of the procedure according to your usecase, and it is ready to use
  2. Completely Dynamic (No Manual Intervention)
    • The SQL Scripts provided is completely dynamic, so no need of any manual intervention.
  3. Automatic column addition and missing column management
    • Whenever a new column is added in the source table, the same column will also be added in the target table also.
    • If a column is removed from the source table, the script won't delete the column in the target table. Instead it preserves the previous data in the column
  4. Email Notification after completing the Data Archival and Data Purging Operation
    • If the operation is completed, it notifies the user through the given Email ID along with some details of the operations such as Start Time, End Time, Source Table, Destination Table and so on
  5. Maintains a Detailed Log Table
    • It also maintains a log table to have a track of the operations performed over time.
    • The Log Table has most of the information with respect to the operation as well as information about the Tables and the Data (Primary Keys Moved) as well

Tools Used

  • Microsoft SQL Server 2022
  • Microsoft SSMS (SQL Server Management Studio 19)

Acknowledgment

  • This project owes its success to the invaluable assistance and direction provided by Mr. P Vengateswaran, Sr Manager at Sagitec Solutions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.