Search for a String in all Tables of a Database
When I work in customer sites, there is a quite a difference between how different sites get data for testing. But it basically comes down to a variation of one of these five:
- Testing? That’s for wimps. (Well perhaps for users)
- I type in all the test data that I need.
- We use a data generator to produce our test data.
- We just periodically get a copy of production data.
- We get production data and it gets masked before we can use it.
It’s the last option that I’m concerned with today. Masking data is challenging and usually much more difficult than imagined. This week, I was working with a masked database and we ended up finding all client details tucked inside a chunk of XML that was used to hold the metadata for a series of images. They had done a good job of removing it from all the normal columns from all tables in the database, but it’s so easy to miss extras like this.
2016-06-12