koresnordic
IS-IT--Management
Hi,
I have a large number of databases that rely on getting data from outside sources via ODBC. Each month several new files are created called itmb[year][month] for example, where [year] & [month] are for the period just finished. At the moment I have to go into each databse, perform a link or import via ODBC, change 10 - 12 queries in each database to pick up the new file. I can live with performing the link / import, but is there anyway inside the query to change the table dynamically, so I don't have to keep changing the table every month? e.g. for October 06 it picks up ITMB0610 and for November it becomes ITMB0611 and then ITMB0612 etc.
![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)
Graham
I have a large number of databases that rely on getting data from outside sources via ODBC. Each month several new files are created called itmb[year][month] for example, where [year] & [month] are for the period just finished. At the moment I have to go into each databse, perform a link or import via ODBC, change 10 - 12 queries in each database to pick up the new file. I can live with performing the link / import, but is there anyway inside the query to change the table dynamically, so I don't have to keep changing the table every month? e.g. for October 06 it picks up ITMB0610 and for November it becomes ITMB0611 and then ITMB0612 etc.
![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)
Graham