Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 How to import dbf files with SSIS in a directory

Author  Topic 

salliven
Starting Member

3 Posts

Posted - 2011-12-09 : 03:55:13
Hello!

I want to import dbf files with SSIS package in a directory.
I created SSIS package with http://dataintegrity.wordpress.com/2009/10/02/converting-dbf-files/
But, how to more dbf files import to a table of SQL Server with SSIS package?


Thanks!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-09 : 04:12:01
you can use for each loop to loop through dbf files
then use a data flow task with microsoft jet provider source to connect to dbf file and oledb connector to connect to sql table for the transfer. give name of table as filename

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-09 : 04:14:27
also see
http://msdn.microsoft.com/en-us/library/aa337084.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

salliven
Starting Member

3 Posts

Posted - 2011-12-10 : 06:22:45
Hello!

Thanks your replay.
Please see this link: http://salliven.site11.com/dbf_load/
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-10 : 11:42:41
destination table is name of file and database is name of folder for DBFs

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

salliven
Starting Member

3 Posts

Posted - 2011-12-12 : 02:43:29
Thanks your replay!

I created two new variables:
1.) @FileName = REPLACE(@[User::FileFullName] , "C:\\adatbetoltesek\\tavszall\\betoltetni\\dbf", "") (Result Exapmle: tavszall.dbf)
2.) @PathName = REPLACE(@[User::FileFullName] , @[User::FileName] , "") (Result Exapmle: C:\\adatbetoltesek\\tavszall\\betoltetni\\dbf)

Please help me, whither I write them?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-12 : 09:13:20
sorry didnt understand whats the purpose of these two variables? is your dbf file source changing? are you trying to iterate through a set of fileS?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -