Solved

making dummy data out of real data

Posted on 2010-08-24
5
234 Views
Last Modified: 2012-05-10
is there any existing code to totally invalidate the existing data, so that is not meaningful any more, in a test environment.

thanks
0
Comment
Question by:anushahanna
  • 2
  • 2
5 Comments
 
LVL 6

Author Comment

by:anushahanna
ID: 33517137
For example, 3 of the 1000s of employees maybe

*John R Singer, SSN: 123456789, Age 54, City Boston Dept Sales
*Mary K Porter, SSN 987654321, Age 42, City Atlanta, Dept Accounting
*Kumar Singh, SSN 224466880, Age 33, City Houston, Dept IT

The output maybe
*Kumar K Singer, SSN;123456789, Age 42, City Atlanta, Dept Sales
*John Porter, SSN 224466880, Age 33, City Houston Dept Accounting

etc

Thanks
0
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 250 total points
ID: 33517330
If you want to invalidate your existing data, then you can use a masking tool like this:

http://www.datamasking.com/productdownloads.aspx
0
 
LVL 59

Assisted Solution

by:Kevin Cross
Kevin Cross earned 250 total points
ID: 33517333
Hi anushahanna,

Firstly, I am hopeful that the data presented above is not real-life production data.

Secondly, it is probably just as easy to do something like this:

update your_table
set full_name = left(full_name, charindex(' ', full_name)-1) + ' Smith'
  , ssn = '555-55-' + substring(ssn, 3, 4)
  , age = (age%20)*(age%5)+18 -- only harmful if full name and ssn known
  , city = 'Metropolis' -- could also not change
  , dept = dept -- doesn't really need changing

Just demonstrating that this should be simple enough. Not sure you need an additional bit of software to do this.
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 33517335
Nice like Raja. Will have to check that out.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33520511
both are creative options. I will check the feasibility with the users.

Thanks
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Abstract Express Replacement Software 12 25
SqlServer no dupes 25 34
sql select record as one long string 21 24
MS SQL Server COnditional Where statement 7 40
I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question