Solved

Cannot Import Flat File into Excel Using SSIS Package

Posted on 2012-03-23
10
458 Views
Last Modified: 2012-03-25
Hello Experts,

I'm trying to build an SSIS package that will import a text file into Excel.

The package is always failing because of text conversion issues.

I'm attaching the the source file (text file), the Excel destination file and the dtsx package file, in the hope that someone could help solve this mystery.

All I need is to have a package that will read the text file and save it into an Excel file.

Thanks for your help,
Hani

PS: I'm having an error trying to attach the dtsx package file
Ipsos-Grid-March-10-16.TXT
Ipsos-Staging.xls
0
Comment
Question by:Mehawitchi
  • 6
  • 4
10 Comments
 
LVL 42

Expert Comment

by:EugeneZ
ID: 37760612
did you try to create the basic SSIS pack by usinf SSMS import-export ?

to upload DTSX - save it as txt file ...
0
 

Author Comment

by:Mehawitchi
ID: 37761102
0
 

Author Comment

by:Mehawitchi
ID: 37761107
Thanks EugeneZ,

Yes I did try the import/export wizard, and the package failed.

I have attached the package after renaming the extension as .txt.

Please rename back to .dtsx

Thanks again,
Hani
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 42

Expert Comment

by:EugeneZ
ID: 37761164
btw: what is your sql server version; edition service pack?
and why you just no open - txt from excel?
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 37761178
can you try to import txt to sql table and from sql server export to excel?
also check

 http://www.excel-sql-server.com/sql-server-export-to-excel-using-ssis.htm
0
 

Author Comment

by:Mehawitchi
ID: 37761586
Thank you EugeneZ,

The article seems very informarive, I'll read it and hopefully it will help me solve my problem.

I have SQL Server 2008 R2.
I can simply read the text file from Excel, but I want to design an SSIS package because I want to automate this process.

Thanks
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 37761719
did you install sp1 for sql2008r2?
0
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
ID: 37761724
did you try to import txt to sql server table and from table to excel as ssis? there can be problems with data types conversion via ssis for txt directely to excel..
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 37761779
what about to use not ssis way? for example: Importing text files in an Excel sheet http://www.jkp-ads.com/articles/importtext.asp
or vba macros inm excel?
0
 

Author Closing Comment

by:Mehawitchi
ID: 37762731
Thank you again EugeneZ

I will try to solve the problem by reading the very informative article on Exporting to Excel using SSIS, which you have provided. If I don't succeed, my last resort will be to import first to SQL table and then on to Excel
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question