---
name: watsonxdata-ingest_spark_database
title: Ingesting data from databases
description: You can ingest data from connected databases into IBM&reg; watsonx.data by using the Spark ingestion UI. This flow enables you to browse and select tables from your connected database and ingest them into your data lakehouse.
last-updated: 2026-04-07
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/watsonxdata?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Ingesting data from databases
{: #ingest_spark_database}

You can ingest data from connected databases into IBM&reg; watsonx.data by using the Spark ingestion UI. This flow enables you to browse and select tables from your connected database and ingest them into your data lakehouse.

## Before you begin
{: #ingest_spark_database1}

- Review the [prerequisites](https://cloud.ibm.com/docs/watsonxdata?topic=watsonxdata-ingest_spark_ui&format=markdown#ingest_spark_ui3) for using the Spark ingestion UI.
- The database must be connected to watsonx.data before it appears in the list. Contact your administrator if the database you need is not available.
- To ensure the ingestion is accurate and consistent with source data, all input schemas must be identical or compatible with the target table schema.

## Procedure
{: #ingest_spark_database2}

1. Log in to the watsonx.data console.
2. From the navigation menu, select **Data manager**.
3. Click **Ingest data**.
4. Select **Databases** as the ingestion flow.
5. From the **Select database** dropdown, choose the connected database you want to ingest from.
6. If you need to add a new database connection, click **Add** next to the database selector.
7. After selecting a database, the available schemas are displayed in the **Schemas** panel.
8. In the **Database** panel on the left:
   - The **Schemas** section displays the number of schemas available
   - Use the **Find schema** search box to filter schemas by name
   - If no schemas are displayed, the message "No schemas in this database" appears with guidance to try selecting a different database
9. In the **Browse Table** panel in the center:
   - After selecting a schema, the **Selected table** and **Schema** information is displayed at the top
   - Use the **Find table** search box to filter tables by name
   - When no schema is selected, the message "No schema selected" appears with guidance: "Files within the selected schema will appear here. Try selecting a schema."
10. Select the tables you want to ingest by clicking on them.
17. See [Configuring target table settings](https://cloud.ibm.com/docs/watsonxdata?topic=watsonxdata-ingest_spark_ui&format=markdown#ingest_spark_ui6) in the parent topic.
18. See [Configuring job details](https://cloud.ibm.com/docs/watsonxdata?topic=watsonxdata-ingest_spark_ui&format=markdown#ingest_spark_ui7) in the parent topic.
5. Click **Done** to submit the ingestion job, or **Cancel** to discard the configuration.

## Results
{: #ingest_spark_database3}

After the ingestion job completes successfully, the data from the source database tables is loaded into the target table in watsonx.data. The source database tables remain unchanged.

## Related information
{: #ingest_spark_database4}

- [Ingesting data by using the Spark ingestion UI](https://cloud.ibm.com/docs/watsonxdata?topic=watsonxdata-ingest_spark_ui&format=markdown)
- [Ingesting data from local system](https://cloud.ibm.com/docs/watsonxdata?topic=watsonxdata-ingest_spark_local&format=markdown)
- [Ingesting data from remote storage](https://cloud.ibm.com/docs/watsonxdata?topic=watsonxdata-ingest_spark_storage&format=markdown)
- [Ingesting data from Delta Lake to Iceberg tables](https://cloud.ibm.com/docs/watsonxdata?topic=watsonxdata-ingest_spark_deltalake&format=markdown)
- [Ingesting streaming data by using Spark Stream (Experimental)](https://cloud.ibm.com/docs/watsonxdata?topic=watsonxdata-ingest_spark_stream&format=markdown)