Solved

Import excel data in an already created SQL Table

Posted on 2011-09-19
4
380 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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

734 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