Solved

Import excel data in an already created SQL Table

Posted on 2011-09-19
4
381 Views
Last Modified: 2012-06-27
This is probably pretty simple.. but I am drawing a blank. I went ahead and created a table that matches the fields in the Excel file. This reason I did this is that many of the field name in the Excel file were name very strangly. for example DQM# or Contact ID #. When I am using this SQL table in my application, I don't want to have to use [ ] all of the time to refer to a field name, so that is why I didn't use the wizard. I just need to understand how to write an import script within sql..

Thank you.
0
Comment
Question by:Jennifer Barman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 21

Assisted Solution

by:Alpesh Patel
Alpesh Patel earned 250 total points
ID: 36560246
Please refer friendly wizard and use edit mapping button at one of the stage.

Edit the name of destination columns and datatype also.
0
 
LVL 8

Accepted Solution

by:
eXpeLLeD_4RM_heLL earned 250 total points
ID: 36560267
Use the SQl Export and Import Wizard :
For How to :
http://msdn.microsoft.com/en-us/library/ms140052.aspx
0
 

Author Comment

by:Jennifer Barman
ID: 36560887
I am using the wizard.. but the table that I want to use is not coming up source tables.. its almost like it is making its own tables. How can I edit mapping on that? mapping ??
0
 

Author Comment

by:Jennifer Barman
ID: 36560978
I figured it out.. thanks you too!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

622 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