dbTalk Databases Forums  

Re: ETL of multiple MS Access TABLES

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Re: ETL of multiple MS Access TABLES in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: ETL of multiple MS Access TABLES - 12-12-2006 , 03:40 PM






Hello Pasha,

You can most definitely do that. Hopefully the names are identified in such
a way that you can tell from one month to the next which table is which.

If you can programmatically determine the name of the table then you do not
even need to loop through the tables collection. You could build the name
of the table in a script task and populate the property (SourceObjectName)
of the transform Data Task.

You can follow the same kind of steps for the name of the Access mdb.


if you must loop through and look for a pattern then sure you can do that
as well.

You could use the ADOX library

http://www.sqldts.com/default.aspx?288

http://www.motobit.com/tips/detpg_listdb/


Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com

Quote:
Hi All,

We have an Access DB as an ETL data source and the name of it (Access
file) changes on monthly basis – a month of extraction is added. In
addition, the names of the tables within the file change as well –
they also have a month added. We are able to use wildcards in the
name of the db (Loop Container), but is there a way to add wildcards
to the names of the tables or to loop through all the tables in Access
(for extraction) (there are only two)?

In other words, is there a way to dynamically determine table names at
a runtime?

Thanks!




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.