Skip to main content

Import from a database

Import product data from a database in Productsup.

You can request product data directly from a database. Productsup provides a selection of data sources for several types of databases. This lets you skip creating a feed file from the database for import.

You must query this database to receive your product information when you import from a database. See Write SQL database queries - tips to learn more.

Note

Productsup can add more drivers and database imports on request.

Import from an MYSQL database

If you work with a vast infrastructure and keep data in a MySQL database, use this importer to get your data into Productsup. This data source connects directly to your database. You can activate the proxy feature to only allow traffic from the Productsup proxy servers.

To import from an MYSQL database:

  1. Go to Data Sources from your site's main menu and select ADD DATA SOURCE.

  2. Select Add for the MYSQL Import data source.

    add_mysql_import_data_source.png
  3. (Optional) Give your data source a custom name. This custom name replaces the name of the data source on the Data Sources Overview page. Then, select Continue.

  4. Add your hostname in Hostname to connect to your database.

  5. In Port, add the port numbers you assigned to the database.

  6. Add your credentials in the Username and Password fields to connect to the database.

  7. Enter the database name in Database.

  8. In Query, enter a query to select the relevant data.

  9. In Charset, select your database charset from the drop-down list if known. Otherwise, the platform decides the charset by default.

  10. Select Save.

    mysql.png

Import from a PostgreSQL database

You can import data using a SQL Query. Productsup supports PostgreSQL UNICODE or PostgreSQL ANSI ODBC drivers.

Note

You should not execute queries from an online transactional database but instead from a database warehouse database or backup. Make sure the user assigned for the Productusp integration only has read access to the necessary tables to complete the query.

To import from a PostgreSQL database:

  1. Go to Data Sources from your site's main menu and select ADD DATA SOURCE.

  2. Select Add for the PostgreSQL data source.

    add_postgresql_data_source.png
  3. (Optional) Give your data source a custom name. This custom name replaces the name of the data source on the Data Sources Overview page. Then, select Continue.

  4. In Driver, choose the relevant driver. Select PostgreSQL UNICODE or Postgre ANSI from the drop-down list.

  5. Add your hostname in Hostname to connect to your database.

  6. In Port, add the port numbers you assigned to the database.

  7. Enter the database name in Database.

  8. Add your credentials in the Username and Password fields to connect to the database.

  9. In Query, enter a query to select the relevant data.

  10. Select Save.

    postgresql.png

Import from a Microsoft SQL Server database

You can import data using a SQL Query. Productsup supports ODBC Driver 17 for SQL Server.

Note

You should not execute queries from an online transactional database but instead from a database warehouse database or backup. Make sure the user assigned for the Productusp integration only has read access to the necessary tables to complete the query.

To import from an MS SQL Server database:

  1. Go to Data Sources from your site's main menu and select ADD DATA SOURCE.

  2. Select Add for the Microsoft SQL Server Import data source.

    add_microsoft_sql_server_import_data_source.png
  3. (Optional) Give your data source a custom name. This custom name replaces the name of the data source on the Data Sources Overview page. Then, select Continue.

  4. Add your hostname in Hostname to connect to your database.

  5. In Port, add the port numbers you assigned to the database.

  6. Enter the database name in Database Name.

  7. Add your credentials in the Username and Password fields to connect to the database.

  8. In Query, enter a query to select the relevant data.

  9. Select Save.

    mssql.png

Import from an ODBC database

You can also connect to any SQL database based on Open Database Connectivity (ODBC). Productsup supports PostgreSQL UNICODE, PostgreSQL ANSI ODBC, and ODBC Driver 17 for SQL Server drivers.

Note

Support for more drivers can be added on request.

Note

You should not execute queries from an online transactional database but instead from a database warehouse database or backup. Make sure the user assigned for the Productusp integration only has read access to the necessary tables to complete the query.

  1. Go to Data Sources from your site's main menu and select ADD DATA SOURCE.

  2. Select Add for the ODBC database Import v1 data source.

    add_odbc_database_import_v1_data_source.png
  3. (Optional) Give your data source a custom name. This custom name replaces the name of the data source on the Data Sources Overview page. Then, select Continue.

  4. In Username, add the username (UID) in connect string to connect to your database.

  5. Add your credentials from the ODBC connect string in the Password fields to connect to the database.

  6. Enter the database name in Connection String.

    • Your database administrator should provide this name.

    • Add it in this format: Driver={ODBC Driver 17 for SQL Server};Server=mssql.123testing.com;Database=tempdb;

  7. In Query, enter a query to select the relevant data.

  8. Select Save.

    odbc.png