We got a requirement in our application like this. To develop a powershell script to update computername in web.config file and in database tables.
This script will be executed if application was already installed but user has to change the computer name. [so even if machine name changed , our application which was installed will not break if he executed the script. No need to uninstall and reinstall the product]
Now lot of tables contains field which has computername in it. For ex. columns like URL, BaseURL contains computername then remaining texts.
I have to find the table names which has column value computername (like column names URL and baseURL contains machine name.For example. AB2S481V0:80/Project/Default.aspx AB2S481V0 is the computername ).
Finding the list by manually looking after each table is burdensome as many tables there. Is there any way to find the list of table names if i pass databasename and column substring(not the entire column name)