Solved

Import excel data in an already created SQL Table

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now