Quantcast
Channel: Questions in topic: "sql-server-2005"
Viewing all articles
Browse latest Browse all 415

How do I validate a variable against multple database tables

$
0
0
Does anyone know how to check a a variable against all database table with columns storing the same type of information? I have a poorly designed database that stores ssn in over 60 tables within one database. some of the variations of columns in the various tables include: app_ssn ca_ssn cand_ssn crl_ssn cu_ssn emtaddr_ssn re_ssn sfcart_ssn sfordr_ssn socsecno ssn Ssn SSN I want to create a stored procedure that will accept a value and check it against every table that has 'ssn' in the name.Does anyone have idea as to how to do this?

Viewing all articles
Browse latest Browse all 415

Trending Articles