I think you'll need to specify if its lan, client server or sql.
Either way, my gut is you'll need a developer like @AlnoorCassim to write something that runs a stored procedure on a sql server (regardless if this is sql or not) and returns back the validation or its going to be painfully slow