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.
Author |
Topic |
salliven
Starting Member
3 Posts |
|
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 filesthen 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 MVPhttp://visakhm.blogspot.com/ |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
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/ |
|
|
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 MVPhttp://visakhm.blogspot.com/ |
|
|
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? |
|
|
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 MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|