17.07.2015 Views

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8 – Obfuscation-- Grant permissions to user defined functionGRANT EXECUTE ON dbo.Numeric_VarianceTO Sensitive_high, Sensitive_medium, Sensitive_low;GOListing 8-6: The Numeric_Variance UDF.To employ this method of masking in a development database, simply use anUPDATE statement to change the column's value to a new value, using ourNumeric_Variance function, as shown in Listing 8-7.USE HomeLending;GO-- Variables usedDECLARE @Variance numeric(5,2)-- Set variance to 10%SET @Variance = 10UPDATE dbo.Loan_TermSET Loan_Amount =dbo.Numeric_Variance(Loan_Amount,@Variance)FROMdbo.Loan_Term;GOListing 8-7: Updating a development database to use numeric variance.NullingThe process of nulling is the replacement of sensitive data with a NULL value,thus rendering the sensitive data unavailable in the development database.While this certainly protects the sensitive data, since the values are no longerknown in the database, it does present issues if there are dependencies uponthis data or constraints that do not permit a NULL value. Also, use of nullingcan also present difficulties when trying to troubleshoot issues that specificallyinvolve sensitive data.To employ this method of masking in a development database, simply use anUPDATE statement to set the column's value to NULL, as shown in Listing 8-8.USE HomeLending;GOUPDATE dbo.Borrower_Identification182

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!