SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Single file excel file upload to sql destination


Single file excel file upload to sql destination

Author
Message
susmitha117
susmitha117
SSC-Enthusiastic
SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)

Group: General Forum Members
Points: 142 Visits: 145
Hi,
I have a file which changes every week @C:\TEMP(data and filename both) schema remains the same all the time. I want to import this data to sql and save it to archive folder.
I will have only one file in temp as the executed file goes to archive. The folder becomes empty.
Please suggest.
I have tried for each loop for this but doesn't seem to work. I am using visual studio 2005 and my excel files are in 97-2003 version(.xls)
prabhu.st
prabhu.st
SSC-Addicted
SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)

Group: General Forum Members
Points: 416 Visits: 310
your question is not clear,

I can understand two questions.

How can I view / why my files are not visible once it is processed from the package. ?

How can I import an repository file into DB and then move the file to an archieve file ?

kindly reply back which is your question. or give your question clearly as it is not now.
Koen Verbeeck
Koen Verbeeck
SSC Guru
SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)

Group: General Forum Members
Points: 61711 Visits: 13297
susmitha117 (7/30/2014)
Hi,
I have a file which changes every week @C:\TEMP(data and filename both) schema remains the same all the time. I want to import this data to sql and save it to archive folder.
I will have only one file in temp as the executed file goes to archive. The folder becomes empty.
Please suggest.
I have tried for each loop for this but doesn't seem to work. I am using visual studio 2005 and my excel files are in 97-2003 version(.xls)


How come the for each doesn't work?


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
susmitha117
susmitha117
SSC-Enthusiastic
SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)

Group: General Forum Members
Points: 142 Visits: 145
hi
sorry for not being clear. I am trying to build a ssis package where after imported to sql table the excel file should go to archive folder(to have a history of processed files). My source file is excel and destination is mssql.
I have solved this issue by using file system task after my data flow task.

Appreciate your reply
Thanks
prabhu.st
prabhu.st
SSC-Addicted
SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)

Group: General Forum Members
Points: 416 Visits: 310
yes, that is the solution I too thought, and make sure you give "Operation"="move" in the file system task editor and overwrite destination set to true.

Thanks,
Prabhu
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search