I’ve been given the task of seeing if it’s possible to automatically convert potentially a lot of user databases
– the reason is there is a change in the table keys
– the tables are in Oracle, so are linked using ODBC
– as I see it, the basic requirement will be to poke around in the database for anywhere the old joins are, and I’ve presumed in the QueryDefs, and replace them with the new ones
I’d hoped that there were properties of the QueryDef, but no luck
I’ve found part of an article by Ken Getz on “Deconstructing QueryDefs” which looks like a start, well the Google cache as the Smart Solutions site has taken down the original
– uses the MSysObjects and MSysQueries tables to “parser” the querydef
– what I’m unsure of is where the actual “join” detail is
– I’m discounting the Relations collection, as it’s very unlikely the users have used it
What I’d be interested in is any other pointers, suggestions, warnings, etc.