|
Hi, I am writing an SSIS package. I am fairly new to SSIS (2005 if that makes a difference). I have taken a course but they have never addressed this particular situation. I have to: 1 - Create an Excel spreadsheet from a stored procedure 2 - Rename it to a date stamped file name 3 - Copy it to an FTP server I have been able to accomplish #1 with the help of the Import/Export wizard, so now I have an Excel sheet with a fixed name. I can't get # 2 to work. I think I want to use a File System task to rename the file to the date stamped version and capture the name of the file in a variable so that I can use it in the FTP Task, but I can't figure out how to do this (or even if my approach is correct). Any Help? Thanks, Dick Rosenberg
(comments are locked)
|
|
I have been trying to do this all day. I followed your directions and everything seemed to set up fine, but when i go to the Data Flow I see a red x in the task to output to excel with the error message "SSIS Error Code DTS_E_OLEDBERROR. AN OLE Error has occurred. Error code: 0X80040e37..any idea of why this doesn't work??? FYI, I found this regarding your error: http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/06ee7fb8-fd01-466a-b20e-e2df5636d62a
Jun 01 '12 at 08:49 PM
JohnM
(comments are locked)
|
|
Hi, Thanks. I got everything working. Then the company that we are sending the file to informed me they wanted a text file, not an .xls file. turned out to be relatively simple to do. I just changed the dataflow task to have a Flat File Destination instead of an excel Destination. I had to jump through a few hoops but I got it done. My problem is dates in the source. I am writing the data I need to a source table with the dates defined as [surveyend_date] nvarchar NULL. In my SQL table they are as I want, e.g. 053010, however in my .csv destination they show up as 53010. Is there any way I can get them the right way in the .csv file? Thanks, Dick You have a couple of options, but probably the best is to use convert to convert to string and set the display format the way you want it to appear.
May 14 '10 at 01:19 PM
TimothyAWiseman
I don't understand. I'm creating the flat file on the fly as a Flat File Destination in the Data Flow Task. Where/how would I convert it to string and set the display format. It is already string on the SQL Server Source side and looks exactly the way I want. It's just not being propogated to the Detination Flat file. Thanks, Dick
May 14 '10 at 02:29 PM
Dick Rosenberg
(comments are locked)
|
|
Hi Dick, This should be able to help you.
Let me know if you run into any problems. Dan. daniel, back slash is the escape character in the wysiwyg editor - there isnt a double back slash showing in your answer. Nice comprehensive answer though. nice one. +1
May 06 '10 at 04:36 AM
Fatherjack ♦♦
Oh, I didn't check the output from the editor. Nice pickup, thanks Jack
May 06 '10 at 08:28 PM
Daniel Ross
(comments are locked)
|


Would love to help, but SSIS is not my strong suit, so I don't really know - but +1 for a well stated question.