We help IT Professionals succeed at work.
Get Started

SSIS import

Kongta asked
Last Modified: 2016-02-22
I would like to Import following xls [http://www.imf.org/external/pubs/ft/weo/2015/02/weodata/download.aspx] into SQL by SSIS. My SQL table should look like

ISO            Code             year            rate
AFG         PCPIPCH       2008            26.41
AFG                PCPIPCH       2009          -6.81
AFG               PCPIPCH        2010           2.17

but the xls has a different listing like

ISO               Code                 2008           2009            2010        2011
AFG                   PCPIPCH           26.41         -6.81             2.17         ...

What would be in your view the most efficient way to Import by SSIS?

Shall I go for coding like
INSERT INTO ISO, Code , year (2008), rate
SELECT ISO, Code, 2008....

or something like Looping in SSIS with variables (year) +1?

thx for your Input
Watch Question
SQL Server Data Dude
Most Valuable Expert 2013
Author of the Year 2015
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE