Link to home
Start Free TrialLog in
Avatar of Sharoness
Sharoness

asked on

How to search all columns of all tables in a database for a keyword

Hi,
I have lost the password to an application that it's database resides on SQL. I was wondering if I can look for the username and password in 1 of the tables in the SQL and then change the password.

My proble is that i have more thab 300 tables in the database. is there a way to search all columns of all tables in a database for a keyword?
ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sharoness
Sharoness

ASKER

How do I use it?
in order to search for a keyword, after running the above  (Please replace 'Alter procedure' with 'CREATE PROCEDURE'  )  you have run this on a new query window

exec  SearchAllTables  'keywordToSearch'