import multiple accessfiles in dts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ezekiël

    import multiple accessfiles in dts

    Hi,

    How can i import multiple accessfiles in sql server 2000 by using a dts
    package?

    The dts package should import files with the most current date in a
    directory (not today's date). The date can be found in the name, e.g.:
    <companyname>_2 0041214.mdb.

    Also i would like to use the companyname from the filename to fill in a
    empty column called companyname, so i can import all files into one
    normalized table.

    The files are placed in on a root drive.

    If someone can help me on this i would be very happy.

    Thnx.


  • John Bell

    #2
    Re: import multiple accessfiles in dts

    Hi

    The following should get you started:




    You can store the company name in a global variable, then use an activeX
    transform to populate a column from that global variable.


    John

    "Ezekiël" <ezekiël@lycos. com> wrote in message
    news:41c281c0$0 $45956$a344fe98 @news.wanadoo.n l...[color=blue]
    > Hi,
    >
    > How can i import multiple accessfiles in sql server 2000 by using a dts
    > package?
    >
    > The dts package should import files with the most current date in a
    > directory (not today's date). The date can be found in the name, e.g.:
    > <companyname>_2 0041214.mdb.
    >
    > Also i would like to use the companyname from the filename to fill in a
    > empty column called companyname, so i can import all files into one
    > normalized table.
    >
    > The files are placed in on a root drive.
    >
    > If someone can help me on this i would be very happy.
    >
    > Thnx.
    >
    >[/color]


    Comment

    Working...