Solved

Excel --> SQL

Posted on 2000-05-02
5
295 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month5 days, 13 hours left to enroll

626 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