SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Import Multiple Excel Files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xhostx
Constraint Violating Yak Guru

USA
261 Posts

Posted - 08/02/2012 :  11:43:56  Show Profile  Reply with Quote
Hi,
I have about 100 .xls files which I need to dump into a one Table SQL server 2008. They all have the same structure.
I know this is can be done using the BID, however, I would like some directions or a process of how to do it.

Steps of the process would be very appreciated.
Thanks,

--------------------------
Get rich or die trying
--------------------------

visakh16
Very Important crosS Applying yaK Herder

India
47173 Posts

Posted - 08/02/2012 :  12:46:30  Show Profile  Reply with Quote
see

http://visakhm.blogspot.com/2012/05/package-to-implement-daily-processing.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

xhostx
Constraint Violating Yak Guru

USA
261 Posts

Posted - 08/03/2012 :  12:26:49  Show Profile  Reply with Quote
visakh16,

Thanks, for the blog, it was helpful. but I couldn't complete this task until i converted all my Excel files into .CSVs.
Somehow the excel files is causing so many warning because of the data conversion.
I'm just curious if anybody have ever ran into a similar issue.
issue:
Import Excel data into a SQL Table (using SSIS) will cause data conversion warning and even trying to mapp all fields (Excel Vs SQLTABLE) to have all the same type will still cause the same error.
Thx,

--------------------------
Get rich or die trying
--------------------------
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
47173 Posts

Posted - 08/03/2012 :  15:02:02  Show Profile  Reply with Quote
quote:
Originally posted by xhostx

visakh16,

Thanks, for the blog, it was helpful. but I couldn't complete this task until i converted all my Excel files into .CSVs.
Somehow the excel files is causing so many warning because of the data conversion.
I'm just curious if anybody have ever ran into a similar issue.
issue:
Import Excel data into a SQL Table (using SSIS) will cause data conversion warning and even trying to mapp all fields (Excel Vs SQLTABLE) to have all the same type will still cause the same error.
Thx,

--------------------------
Get rich or die trying
--------------------------


you just need to add a derived column task in between to convert unicode data(thats how text data within excel is interpreted by system) to non unicode before you dump it to table to avoid warnings

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

xhostx
Constraint Violating Yak Guru

USA
261 Posts

Posted - 08/03/2012 :  15:16:23  Show Profile  Reply with Quote
Thanks a lot for your help.



--------------------------
Get rich or die trying
--------------------------
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000