Solved

Excel --> SQL

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

831 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