Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Import data from excel and load into sql server Expand / Collapse
Author
Message
Posted Tuesday, August 07, 2012 1:31 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, May 13, 2013 8:47 AM
Points: 23, Visits: 285
I need to import data from excel and excel has data like this for example
Column Name
Test01 test02 test03 test04 test05
Values
State2_J State4_A State2_H NUll NULL

State3_a State1_A State3_F NULL State4_P


In requirment all this data value become distinct column value like this

State2_A, State2_B,State2_J,State4_A


So i need to yes under appropriate column name and rest remain null for example

State2_A, State2_B,State2_J,State4_A
yes YES

Please Help me. any idea would be apericated.
Post #1341507
Posted Tuesday, August 07, 2012 7:13 PM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, May 17, 2013 4:14 PM
Points: 91, Visits: 472
Are you using SSIS for your ETL purposes?

Regards:
Mordred
Keep on Coding in the Free World
Post #1341644
Posted Tuesday, August 07, 2012 8:35 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 3:04 PM
Points: 5,101, Visits: 20,200
Is
Test01 test02 test03 test04 test05
-----------------------------------------------------
State2_J State4_A State2_H NUll NULL

Do columns test04 and test05 contain
a. the charactes null, NULL
b. blank characters
c. EMPTY?


If everything seems to be going well, you have obviously overlooked something.

Ron

Please help us, help you -before posting a question please read

Before posting a performance problem please read
Post #1341655
Posted Wednesday, August 08, 2012 8:17 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, May 13, 2013 8:47 AM
Points: 23, Visits: 285
Yes!!! I am using SSIS
Post #1341899
Posted Wednesday, August 08, 2012 8:20 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, May 13, 2013 8:47 AM
Points: 23, Visits: 285
I have many other column, in which i dont have any value that's why i specify null. As I mention earlier my data value are becoming column and we have to put "Yes" under apropriate column name.
Post #1341902
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse