Solved

Excel --> SQL

Posted on 2000-05-02
5
287 Views
Last Modified: 2010-05-02
Hey ,

Im looking for quickest and easiest way to transfer data from an Excel file into an SQL Server database..

I am in the position where on a regular basis I will need to move data across from Excel to SQL and am looking for a way to automate the process..

all suggestions welcomed!
0
Comment
Question by:obscur3d
[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
5 Comments
 
LVL 1

Expert Comment

by:pauljk
ID: 2771826
Is this data going into an existing table?  Or is the excel spreadsheet making a new table?
0
 

Author Comment

by:obscur3d
ID: 2771854
ok basically what needs to happen is the existing SQL table cleared of all data..and the excel data inserted in the SQL table..

so concievably either method would be fine.. whether it just updates the data, or removes the table and creates a new table..
0
 
LVL 3

Accepted Solution

by:
DrMaltz earned 100 total points
ID: 2771855
obscur3d, if you are using SQL Server 7.0, you can take advantage of the Data Transformation Wizard.  This wizard makes it easy to import or export data into/from a SQL Server database from multiple sources.  Some of the sources:  Excel, Access,OLE DB Provider,ODBC,etc..  This configuration can be configured to automatically execute from SQL Server. I hope you've got SQL 7.0.. This is the easiest method..

You could write a VBA macro in the EXCEL spreadsheet which basically reads your sheet and connects to the SQL Server Database using DAO to do a BULK Insert into the SQL Server system.


Last hope.. You could also use the bcp utility that ships with SQL 6.5 or SQL 7.0 .
0
 

Author Comment

by:obscur3d
ID: 2771972
Thanks for the feedback..just a few clarifications needed.
The Data Transformation Wizard looks exactly what Im after..however can this be scheduled or update automatically..
ie. the data transformation needs to be completed without any user interaction..
0
 

Author Comment

by:obscur3d
ID: 2772002
answered my own question.. lol
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add and format columns in vb6 7 84
VB 6 error 5 in windows 10 but not in XP 7 72
Automatic Email Reminder 4 94
VBA to find and replace multiline text from VBA modules 8 107
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

739 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