Skip to end of banner
Go to start of banner

Scrambling of Databases

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »


This article explains how to scramble databases using attached scripts and files


Introduction

Sometimes Adonis needs to receive a database or to use a customer’s cloud database for extensive error searching, or for testing a new functionality towards a specific customer’s setup. In these cases, the database will be scrambled before any further actions are taken.

A customer with local installation should always scramble the database before transferring it to Adonis possession.

Attachments

How-To

  1. Create directory C:\Scramble (the path can be changed in line 161 of the scramble.sql file)

  2. Copy files family.txt, name.txt into C:\Scramble

  3. Start SQL Server Management Studio

  4. Select the database that you want to scramble

  5. Run the script from file scramble.sql

    • You might get some errors during this process but that is fine as there are tables that have been removed from the Database structure, but that are still here in the script.

What the script does

  1. Update PW001P01 First and Last names

  2. Update PW001P06 First and Last names

  3. Set all fields "NOTES", "NOTE" in the database to "Not me, Chief!" the Seaman replied. "Once I get out of the Navy, I'm never going to stand in line again!"

  4. Set all fields of database "COMMENTS", "COMMENT", "REMARK", "REMARKS" of database to "Remember pancake day"

  5. Set all fields of database "CreatedBY", "ChangedBY" to "ADEMO"

  6. Drop “Utvalg” tables

  7. Rename Company and Vessels to "CompanyX", "VesselX" (commented out in the script)

  8. Scramble telecommunications of PW001P0T

  9. Scramble telecommunications of PW001PT6

  10. Set the "DESCRIPTION" field of PW001OLEDOCS to "Enclosed document"

  11. Scramble telecommunications of PW001P01

  12. Scramble BIRTHDATE of PW001P01

  13. Scramble PERSONALIDNO of PW001P01

  14. Set the Enclosed document to NULL

  15. Drop BACKUP tables

  16. Delete data from "AUDIT" tables

  • No labels