Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to search entire DB for 16 digit string

Status
Not open for further replies.

MJD1

Technical User
Jul 18, 2003
134
0
0
CA
hi, does anyone know how to search en entire db for 16 digit number strings? need an audit system to ensure that credit cards aren't being recorded in a db.

thanks
 
How good are you with VBA? You could write a Function that spins through all tables (or a subset that you define), then spin through all fields that could contain the pattern (can skip Boolean, Dates, etc.). I assume you may need to search for xxxxxxxxxxxxxxxx as well as xxxx-xxxx-xxxx-xxxx as well as xxxx xxxx xxxx xxxx or maybe even more variations?

When all else fails, manipulate the data.
 
I assume you may need to search for xxxxxxxxxxxxxxxx as well as xxxx-xxxx-xxxx-xxxx as well as xxxx xxxx xxxx xxxx or maybe even more variations?

Regarding this specifically, have a look at the Replace() function to eliminate spaces and hyphens in your search criteria.

Beir bua agus beannacht!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top