Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
User enter text that need to check in database which table is related. We have n Number of table how to do that?.
Posted

You can use the catalog stored procedures[^] to get a list of tables in your database then use a query such as the one here[^] to search all of the text columns.

Warning - this may take some time to run.
 
Share this answer
 
There's a ready made procedure you can try: Search for a string in all tables of SQL Server Database[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900