dbTalk Databases Forums  

Import data from multiple acces db

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


Discuss Import data from multiple acces db in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Import data from multiple acces db
 
Posts: n/a

Default Import data from multiple acces db - 11-22-2004 , 03:49 AM






Hi , i need an help .
I need to import data from database access to sql server database , and this
is not a problem . The really problem is that the database access is
variable .
My idea is to insert database location on an sql server table and use this
to change dynamically datasource on my dts .
I try to made a dts but i cannot succeed in .
Can anyone help me and gine me some indication .

I have an sql server 2000 sp3a

Thanks a lot

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Import data from multiple acces db - 11-23-2004 , 07:46 AM






If the structure of the access table is always the same then you can do
this, by changing the connection -

How can I change the filename for an Access Connection?
(http://www.sqldts.com/default.aspx?201)

You could also use the Dynamic Properties Task to do this instead, just use
query assignment to retrieve the value and set the DataSource property of
the MDB connection.

If the table name changes as well, but the structure is the same, then you
could use similar method to above, but change the SourceObjectName property
of the DataPump task as well.

--
Darren Green
http://www.sqldts.com


"Import data from multiple acces db" <Import data from multiple acces
db (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi , i need an help .
I need to import data from database access to sql server database , and
this
is not a problem . The really problem is that the database access is
variable .
My idea is to insert database location on an sql server table and use this
to change dynamically datasource on my dts .
I try to made a dts but i cannot succeed in .
Can anyone help me and gine me some indication .

I have an sql server 2000 sp3a

Thanks a lot



Reply With Quote
  #3  
Old   
Import data from multiple acces db
 
Posts: n/a

Default Re: Import data from multiple acces db - 11-24-2004 , 01:51 AM



Thanks a lot Darren , i found the site that u show to me , but i have one
problem , the first round i change the datasource of the mdb connection and
the import goes well , the second round i try to change the datasource with
an another mdb file name but the dts import data from the first mdb file .
I insert an msgbox to verify that the secon round find the correct filename
and it does well but data come from the first file .
Probably dts keep the first connection open . what can i do to solve this
problem .

Thaks another time .

"Darren Green" wrote:

Quote:
If the structure of the access table is always the same then you can do
this, by changing the connection -

How can I change the filename for an Access Connection?
(http://www.sqldts.com/default.aspx?201)

You could also use the Dynamic Properties Task to do this instead, just use
query assignment to retrieve the value and set the DataSource property of
the MDB connection.

If the table name changes as well, but the structure is the same, then you
could use similar method to above, but change the SourceObjectName property
of the DataPump task as well.

--
Darren Green
http://www.sqldts.com


"Import data from multiple acces db" <Import data from multiple acces
db (AT) discussions (DOT) microsoft.com> wrote in message
news:77BF6125-A9DA-4C70-B0F9-9D55F037F84B (AT) microsoft (DOT) com...
Hi , i need an help .
I need to import data from database access to sql server database , and
this
is not a problem . The really problem is that the database access is
variable .
My idea is to insert database location on an sql server table and use this
to change dynamically datasource on my dts .
I try to made a dts but i cannot succeed in .
Can anyone help me and gine me some indication .

I have an sql server 2000 sp3a

Thanks a lot




Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: Import data from multiple acces db - 11-24-2004 , 02:09 AM



There is an option "Close connection on completion" that you need to set so
it close stegh onnection to enable it to be (re)opened withe teh new
filename you have set.

Right-click the DataPump task, Workflow Properties, Options.


--
Darren Green
http://www.sqldts.com
"Import data from multiple acces db"
<Importdatafrommultipleaccesdb (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks a lot Darren , i found the site that u show to me , but i have one
problem , the first round i change the datasource of the mdb connection
and
the import goes well , the second round i try to change the datasource
with
an another mdb file name but the dts import data from the first mdb file .
I insert an msgbox to verify that the secon round find the correct
filename
and it does well but data come from the first file .
Probably dts keep the first connection open . what can i do to solve this
problem .

Thaks another time .

"Darren Green" wrote:

If the structure of the access table is always the same then you can do
this, by changing the connection -

How can I change the filename for an Access Connection?
(http://www.sqldts.com/default.aspx?201)

You could also use the Dynamic Properties Task to do this instead, just
use
query assignment to retrieve the value and set the DataSource property
of
the MDB connection.

If the table name changes as well, but the structure is the same, then
you
could use similar method to above, but change the SourceObjectName
property
of the DataPump task as well.

--
Darren Green
http://www.sqldts.com


"Import data from multiple acces db" <Import data from multiple acces
db (AT) discussions (DOT) microsoft.com> wrote in message
news:77BF6125-A9DA-4C70-B0F9-9D55F037F84B (AT) microsoft (DOT) com...
Hi , i need an help .
I need to import data from database access to sql server database ,
and
this
is not a problem . The really problem is that the database access is
variable .
My idea is to insert database location on an sql server table and use
this
to change dynamically datasource on my dts .
I try to made a dts but i cannot succeed in .
Can anyone help me and gine me some indication .

I have an sql server 2000 sp3a

Thanks a lot






Reply With Quote
  #5  
Old   
Import data from multiple acces db
 
Posts: n/a

Default Re: Import data from multiple acces db - 11-24-2004 , 05:15 AM



Now it goes well .
Thanks a lot !

"Darren Green" wrote:

Quote:
There is an option "Close connection on completion" that you need to set so
it close stegh onnection to enable it to be (re)opened withe teh new
filename you have set.

Right-click the DataPump task, Workflow Properties, Options.


--
Darren Green
http://www.sqldts.com
"Import data from multiple acces db"
Importdatafrommultipleaccesdb (AT) d... microsoft.com> wrote in message
news:3C5A2128-2770-4EF3-89E0-7A7104F2F18B (AT) microsoft (DOT) com...
Thanks a lot Darren , i found the site that u show to me , but i have one
problem , the first round i change the datasource of the mdb connection
and
the import goes well , the second round i try to change the datasource
with
an another mdb file name but the dts import data from the first mdb file .
I insert an msgbox to verify that the secon round find the correct
filename
and it does well but data come from the first file .
Probably dts keep the first connection open . what can i do to solve this
problem .

Thaks another time .

"Darren Green" wrote:

If the structure of the access table is always the same then you can do
this, by changing the connection -

How can I change the filename for an Access Connection?
(http://www.sqldts.com/default.aspx?201)

You could also use the Dynamic Properties Task to do this instead, just
use
query assignment to retrieve the value and set the DataSource property
of
the MDB connection.

If the table name changes as well, but the structure is the same, then
you
could use similar method to above, but change the SourceObjectName
property
of the DataPump task as well.

--
Darren Green
http://www.sqldts.com


"Import data from multiple acces db" <Import data from multiple acces
db (AT) discussions (DOT) microsoft.com> wrote in message
news:77BF6125-A9DA-4C70-B0F9-9D55F037F84B (AT) microsoft (DOT) com...
Hi , i need an help .
I need to import data from database access to sql server database ,
and
this
is not a problem . The really problem is that the database access is
variable .
My idea is to insert database location on an sql server table and use
this
to change dynamically datasource on my dts .
I try to made a dts but i cannot succeed in .
Can anyone help me and gine me some indication .

I have an sql server 2000 sp3a

Thanks a lot







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.