troubleshooting Question

Import via Excel and SSIS

Avatar of i2mental
i2mentalFlag for United States of America asked on
Microsoft SQL ServerMicrosoft SQL Server 2005
4 Comments1 Solution2077 ViewsLast Modified:
I'm working on an SSIS package that will digest an excel spreadsheet that our client will have filled out and import that information into a SQL Server database. I'm stuck on a particular problem with columns that contain numbers and text.

Through excel, I see a column that would look like this.

WAG_TYPE                <-- column header
Roof
Basement
1
1
Roof
2

When I pick this data up via Excel Source in my package, it will either display only the Text or only the numbers. The other rows will show up as NULL.

i.e.

WAG_TYPE
Roof
Basement
NULL
NULL
Roof
NULL

This will be reversed if the package guesses that it's an numeric field (depending on how the data is sorted in excel). Numbers will show up and text will be NULL.

I can go into excel and put a ' in front of every number to treat it as text and it comes in fine. But that is much to labor intensive and the data will be coming from a client.

I'm looking for a way to force all contents of a column to be read as text no matter what is in it. Does anybody have a suggestion as to how I can accomplish that?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros