I'm working on a database where the previous designer created a series of make table queries that create a table in "Another Database". I need to move the back end databases for development and testing purposes. To do that, I have a process that relinks all tables. But my process does not look at the internals of each make table query to see if it points to a specific database so it can be changed. Does anyone have suggestions on how to approach this issue?
My thoughts are to write a process that goes through each make table query, reads the SQL, finds the IN portion of the statement (this specifies the database)that follows the INTO, and then replace that part of the statement with the new location of the database.
This could take a while to build. Perhaps there are better approaches -- or existing code.
Thanks.
My thoughts are to write a process that goes through each make table query, reads the SQL, finds the IN portion of the statement (this specifies the database)that follows the INTO, and then replace that part of the statement with the new location of the database.
This could take a while to build. Perhaps there are better approaches -- or existing code.
Thanks.