Solved

Excel --> SQL

Posted on 2000-05-02
5
267 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
  • 3
5 Comments
 
LVL 1

Expert Comment

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

Author Comment

by:obscur3d
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
answered my own question.. lol
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

10 Experts available now in Live!

Get 1:1 Help Now