Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS to IMPORT and then EXPORT to/from EXCEL


SSIS to IMPORT and then EXPORT to/from EXCEL

Author
Message
SQL_Enthusiast
SQL_Enthusiast
Old Hand
Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)

Group: General Forum Members
Points: 388 Visits: 422
I have an SSIS package that creates the temp table, then uses a data flow to import a CSV file from C:\SSIS\IMPORT (call it tmp001.csv). After the import into TEMP_INV_DATA, the control flow steps through a handful of tasks to transfer the data. The final step is to put the transformed data into INV_DATA table.

What I want to know is, how do I take the data just entered into INV_DATA and dump it to excel (xls, xlsx, or csv - doesn't matter to me) from a SQL Statement (SELECT * FROM INV_DATA WHERE CREATE_USER = 'INV_INTERFACE' AND CONVERT(VARCHAR(12),CREATE_TIMESTAMP,110) = CONVERT(VARCHAR(12),GETDATE(),110)) ?

Things I have tried: I tried adding another data flow item (Flat File Desintation), but I have to link it to the OLE DB Desitination and I'm affraid the package is going to flat file source -> OLE DB Destination -> then export (Flat File Destination) BEFORE any of the transformation.

Please let me know if you need anything else. Thank you
isharief291
isharief291
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 6
I am having a very big Fixed length file and I having the layout of the file but to create a table in sql server 2008 giving hard time. Any solution to fix this problem.
bwild
bwild
Old Hand
Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)

Group: General Forum Members
Points: 309 Visits: 326
I'm not entirely sure of what I may be missing here, but could you just add another data flow task after the initial data flow task and use your SELECT statment on an OLE DB Source to INV_DATA within that data flow? That way, the first data flow would finish before running the next data flow.



SQL_Enthusiast
SQL_Enthusiast
Old Hand
Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)Old Hand (388 reputation)

Group: General Forum Members
Points: 388 Visits: 422
That is what I ended up doing. I was trying to drag and drop the data flow and it wouldn't work. I found an online article that stated to double click on the data flow. That worked. Thank you.
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