Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Save Mapping Between Excel Columns and SQL Server Table Columns Without Using SSIS

Posted on 2016-07-17
8
Medium Priority
?
59 Views
Last Modified: 2016-07-18
Hi Experts,

I'm importing data frequently from excel to sql server table, and my question if there is a way to save the mapping between excel columns and sql table columns so I can use it again and again instead of do the mapping manually each time "without using SSIS".

If there is a way please provide me with an example?



Thanks a lot in advance.
Harreni
0
Comment
Question by:Harreni
[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
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 6

Assisted Solution

by:Manju
Manju earned 800 total points
ID: 41717192
SSIS is the best and easy way to do it. however you dont have to do it again and again. Create an SSIS, save it and start using it when ever u want.

https://msdn.microsoft.com/en-us/library/ms186943(v=sql.110).aspx
0
 
LVL 8

Expert Comment

by:Jose Torres
ID: 41717384
Harreni,

You state that you are importing data "frequently" from excel to sql.
How are you currently accomplishing this task?
0
 

Author Comment

by:Harreni
ID: 41717479
Thanks Manju.


Mr. Jose,
I use the SQL SERVER Import and export wizard.
0
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
LVL 66

Accepted Solution

by:
Jim Horn earned 800 total points
ID: 41717493
>I use the SQL SERVER Import and export wizard.
Okay.  This creates an SSIS package, and you should see a checkbox at the end of the wizard that gives you the option to save the SSIS package after the wizard runs it.  Once you know the file, you can execute it anytime.

A word of caution ... Excel docs are traditionally not a good data source for ETL apps such as SSIS, as users can edit the Excel doc in any number of infinite ways that would cause an ETL app to fail, as ETL requires a 'contract' between data source(s) and destinations(s) such that any little change could/would require a re-mapping.
2
 
LVL 8

Assisted Solution

by:Jose Torres
Jose Torres earned 400 total points
ID: 41717519
Thank you St. Jimbo exactly what I would have said based on what I expected Harreni's to be.

Herrani,
St. Jimbo is correct you are already using an SSIS package.
As per Microsoft "The SQL Server Import and Export Wizard offers the simplest method to create a Integration Services package that copies data from a source to a destination."

So your request is sort of contracting itself.  You want to move data without using SSIS but you are currently using that feature.

Again as St. Jimbo mentioned the only difference is that you are not saving it and constantly recreating it everytime you perform this activity.

Unless your ultimate goal is to move data from excel to sql using a different mechanism altogether.
0
 

Author Comment

by:Harreni
ID: 41717550
Thanks a lot gentlemen for this great explanation.
I've SQL EXPRESS edition but I cannot see any choice to save the package.
0
 
LVL 6

Assisted Solution

by:Manju
Manju earned 800 total points
ID: 41717552
Unfortunately in SQL express, web or workgroup, you cannot save. You need to upgrade to different version it to save.
0
 

Author Closing Comment

by:Harreni
ID: 41717623
Thank you all.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

This article describes a serious pitfall that can happen when deleting shapes using VBA.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Viewers will learn how the fundamental information of how to create a table.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

688 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