undefined

Export Octoparse Data into Your SqlServer Manually

Wednesday, July 20, 2016 11:53 PM

For the latest tutorials, visit our new self-service portal. Sharpen your skills and explore new ways to use Octoparse.

 

This guide will introduce you to how to export data to your database (MySQL, SQLServer) manually and automatically and introduce Octoparse's auto-export tool (Database only).

Here are the prerequisites before we start:

1. Tasks with data results (Auto-export to the database is for Cloud data only)

2. A table with data fields configured in your database to receive data 

Note:

"Auto-export to database" only supports MySql and SQLServer. If you need to connect with other databases or platforms (such as your own websites), please refer to Octoparse API: Data Export API and Advanced API or use Zapier.

1. How to connect to your database

This tutorial will use the MySql database as an example.

View the Cloud data for the target task.

    a. Click the "Export Data" button

    b. Open "Export to Database" or "Auto-export" to the database 

    c. Choose the type of your database

    d. Press "OK"

database1

    e. Fill out the required fields for the target database settings.

database2

 

After filling out the information, click "Test Connection" to see if you can connect to your database.

If the settings are alright, you will receive a "Connected" notice as above. Then, you can click "Next" to move forward.

   a. We need to configure the data mappings now. Select an existing table from the Data Table drop-down options

database3

    b. Match the source data fields (data fields extracted) to the target data fields from the designated table

   c. Select any source data fields to use as identifiers (primary key)

To export manually, you can go to the next step now. For the automatic export, you have to set up the schedule settings.

   a. Enter the name of the schedule into the text box next to "Scheduled Export"

   b. Select at what time interval you would like to export the data to the database, i.e. the export is scheduled to run every 1 hour in     the screenshot.

   c. Click "Next" 

Tips!

Once a data field is selected as a primary key, subsequent data records with the same primary key will overwrite the existing ones in the database.

Save Settings: Once the configuration is completed, it can be saved for later use. You can name the settings first and then press the "Save" button to save it.

Next time, if you want to use your previous database export settings, you can just choose a saved setting to save time.

 

    d. After set-up is completed, press the "Completed" button to exit.

2. Introduction to database auto-export tool

After you set up the database settings, the Auto-export tool will pop up simultaneously. It will show you all the configuration details about auto-export to the database. You need to click "Start" to start the export. Octoparse will do the export at the interval you have set up after starting.

 

From the pop-up window, you can start/stop/delete the scheduled auto export to the database. You can also check the error report.

Please note that you have to keep the database auto-export tool open to keep exporting data. That means you cannot turn off your computer during the export. Otherwise, your data export will be stopped.

1. The auto-export tool is also accessible from the "Toolbox" from the side navigation.

2. The export will start immediately when you click the Start button.

3. Automatic export to the database only exports unexported data every time.

 

Should you encounter any problems with auto-exporting to a database, feel free to leave your message.

 

Happy Data Hunting!

Author: The Octoparse Team

Download Octoparse Today

 

For more information about Octoparse, please click here.

Sign up today. 

 

We use cookies to enhance your browsing experience. Read about how we use cookies and how you can control them by clicking cookie settings. If you continue to use this site, you consent to our use of cookies.
Accept Close