dbTalk Databases Forums  

importing mdb's

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


Discuss importing mdb's in the microsoft.public.sqlserver.dts forum.



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

Default importing mdb's - 08-17-2004 , 03:57 AM






Hi,

I'm trying to import some .mdb files into sql server. Those files are the
same but comes from different companies.

After i import the mdb files, i append them to a normalized tablestructure
where i update an empty field which is the name of the company where the
database comes from.

Now i know that i could do this automatically, but i don't know if i should
a stored procedure for this or a local package. In a stored procedure i
could use the temp database of sql server to save the import temporarly.

Could i have some advice on this subject?



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: importing mdb's - 08-17-2004 , 02:11 PM






Why would you use TempDB?

If the structures are the same then do this

Create a package that imports 1 of those MDBs
Create a controller package which in it has a loop routine over the
directory in which you hold the mdbs
In each loop you call the MDB package. You pass in to that package the
name of the MDB and it sets the Access connection accordingly.
You could also pass in the name of the company from which you got the mdb.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Samuel" <samuel (AT) hotrmail (DOT) com> wrote

Quote:
Hi,

I'm trying to import some .mdb files into sql server. Those files are the
same but comes from different companies.

After i import the mdb files, i append them to a normalized tablestructure
where i update an empty field which is the name of the company where the
database comes from.

Now i know that i could do this automatically, but i don't know if i
should
a stored procedure for this or a local package. In a stored procedure i
could use the temp database of sql server to save the import temporarly.

Could i have some advice on this subject?





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.