I am setting a location database for many locations. These are all connected to sharepoint. What I need to do and am doing manually to this point is replacing table names in all my querys. Is there any code that I can change just the sql in all the querys? An example is that my template database has a table named tblprofile_Demo and I need to change to tblprofile_Memphis. This would be done after I have imported the location sharepoint lists into the template.