Solved

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

Posted on 2016-07-17
8
46 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
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 6

Assisted Solution

by:Manju
Manju earned 200 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 65

Accepted Solution

by:
Jim Horn earned 200 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 100 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 200 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

840 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