The Demandbase Databricks Zero-Copy integration allows you to securely access Demandbase datasets directly in your Databricks workspace using Databricks Delta Sharing.
With this integration, you can query Demandbase data using standard SQL without copying the data into your Databricks storage.
Benefits of Integrating Demandbase with Databricks Zero-Copy
- Centralized audience segmentation and activation: Combine Demandbase intent and account intelligence with first-party data in Databricks to create unified audience segments for activation across channels.
- Unified go-to-market (GTM) analytics: Combine Demandbase data with CRM, Marketing Automation System (MAS), product usage, and revenue data to build comprehensive dashboards and reports.
- AI and predictive modeling: Enrich AI and machine learning models with Demandbase account intelligence and intent data without maintaining custom ingestion pipelines.
- Secure data access: Query Demandbase datasets through read-only shared tables without copying data into your Databricks storage.
How Databricks Zero-Copy Integration Works
Demandbase uses Databricks-to-Databricks Delta Sharing to provide access to customer-specific datasets.
Demandbase maintains Delta tables in its Databricks Unity Catalog. Each shared table uses partition filters based on your Databricks metastore sharing identifier to ensure that you can access only data belonging to your organization.
After Demandbase provisions access, you can create a catalog from the shared data in your Databricks workspace and query the tables using standard SQL.
The integration does not require data ingestion pipelines, authentication tokens, or credential files.
Supported Demandbase Datasets
Demandbase provides access to the datasets included in Collection 1, 2, 3, and 4. See Entity-Dataset Definitions.
Data Availability and Refresh Cadence in Databricks
| Item | Description |
| Initial data availability | Demandbase completes the initial data load before granting access. Data is available immediately after you create the shared catalog. |
| Data refresh frequency | Demandbase refreshes shared datasets when new data becomes available, at least once every 24 hours. |
Prerequisites to Integrate Demandbase with Databricks Zero-Copy
- You must have a Databricks workspace with Unity Catalog enabled.
- Cross-region data sharing: Demandbase supports data sharing across regions.
- You must be a metastore admin or have the following privileges on the metastore:
USE PROVIDERCREATE CATALOG
- You must have a running SQL warehouse to execute SQL commands. Any warehouse size is supported.
- You must provide your Databricks metastore sharing identifier to Demandbase.
Important: You can associate a Databricks metastore with only one Demandbase tenant. - You must have access to Demandbase One for Marketing.
Retrieve Your Databricks Metastore Sharing Identifier
Run the following SQL command in the SQL Editor of your Databricks workspace to retrieve your metastore sharing identifier.
SELECT CURRENT_METASTORE();Example output:
aws:us-east-2:3455c510-fd1e-4934-855b-943f23d991b3The sharing identifier includes your cloud provider, region, and unique metastore identifier.
Submit Your Databricks Metastore Sharing Identifier
Provide the complete Databricks metastore sharing identifier returned by the CURRENT_METASTORE() command to your Demandbase Account Team to enable the Databricks Zero-Copy integration.
How Demandbase Provisions Databricks Access
After receiving your Databricks metastore sharing identifier, Demandbase:
- Creates a recipient for your Databricks metastore.
- Grants the recipient access to the share associated with your data collection.
- Applies tenant-level partition filters to restrict access to your organization's data.
Your Demandbase Account Team notifies you when access is granted.
Create the Demandbase Shared Catalog in Databricks
After Demandbase confirms that access has been granted, run the following commands in the SQL Editor of your Databricks workspace to create the shared catalog and grant the appropriate permissions.
The following examples use:
-
demandbase: Demandbase provider name. -
demandbase_data_collection_1: Demandbase share name. -
my_demandbase_data: Name of the catalog created in your Databricks workspace.
Grant Permissions to Create the Shared Catalog
If you are not a metastore admin and do not have the required privileges, ask your metastore admin to run the following commands.
GRANT USE PROVIDER ON METASTORE
TO `you@yourcompany.com`;
GRANT CREATE CATALOG ON METASTORE
TO `you@yourcompany.com`;Replace you@yourcompany.com with the email address of the user who requires access.
Verify Access to the Demandbase Share
Run the following commands to verify access to the Demandbase provider and identify the share associated with your data collection.
SHOW PROVIDERS;
SHOW SHARES IN PROVIDER demandbase;The results include the demandbase provider and the share associated with your data collection.
Create the Shared Databricks Catalog
Run the following command to create a catalog from the Demandbase share.
CREATE CATALOG IF NOT EXISTS my_demandbase_data
USING SHARE demandbase.demandbase_data_collection_1;Replace demandbase_data_collection_1 with the share name returned by the SHOW SHARES command.
You can also replace my_demandbase_data with a catalog name of your choice.
Grant Access to the Shared Catalog
Grant read access to the Databricks group that requires access to the shared catalog.
GRANT USE CATALOG, USE SCHEMA, SELECT
ON CATALOG my_demandbase_data
TO `<YOUR_GROUP>`;Replace <YOUR_GROUP> with the Databricks group that requires access.
Important: Grant access only to groups that require the shared Demandbase data. Granting privileges to the account users group makes the shared catalog accessible to all users in that group.
Verify Access to the Shared Catalog
Run the following command to view the tables available in your shared catalog.
SHOW TABLES IN my_demandbase_data.demandbase;
To verify access to your Demandbase data, run a query against one of the available tables.
SELECT *
FROM my_demandbase_data.demandbase.<TABLE_NAME>
LIMIT 10;Replace <TABLE_NAME> with a table name returned by the SHOW TABLES command.
If provisioning is complete and data is available, the query returns records associated with your Demandbase tenant.
If you encounter an error, see Troubleshoot Databricks Zero-Copy Integration.
Query Demandbase Data in Databricks
After creating the shared catalog, you can use SQL to query Demandbase datasets.
All shared tables are available under the demandbase schema in your shared catalog. The tables are read-only and automatically filtered to your Demandbase tenant. You do not need to apply additional tenant filters.
The following examples demonstrate common queries.
Important: Replace my_demandbase_data with the name of your shared catalog. Available datasets and fields depend on your data collection.
View All Demandbase Accounts
SELECT
account_id,
account_name,
account_domain,
source
FROM my_demandbase_data.demandbase.db1_accounts_v2
ORDER BY account_name;Find High-Intent Demandbase Accounts
SELECT
a.account_name,
a.account_domain,
i.keyword,
i.keyword_set_name,
i.intent_strength
FROM my_demandbase_data.demandbase.db1_accounts_v2 a
JOIN my_demandbase_data.demandbase.db1_account_keyword_intent i
ON a.account_id = i.account_id
WHERE i.intent_strength = 'HIGH'
ORDER BY a.account_name;View Demandbase Qualification Scores
SELECT
a.account_name,
s.score_type,
s.score_rating,
s.score
FROM my_demandbase_data.demandbase.db1_accounts_v2 a
JOIN my_demandbase_data.demandbase.db1_account_scores s
ON a.account_id = s.account_id
WHERE s.score_type = 'qualification_score'
ORDER BY s.score DESC;View Demandbase Ad Campaign Performance
SELECT
c.campaign_name,
r.start_date,
r.impression_count,
r.click_count,
r.click_through_rate,
r.accounts_reached_count,
r.accounts_visited_count
FROM my_demandbase_data.demandbase.db1_campaigns_v2 c
JOIN my_demandbase_data.demandbase.db1_campaign_performance_rollups_v2 r
ON c.campaign_id = r.campaign_id
ORDER BY c.campaign_name, r.start_date DESC;View Demandbase Technographics
SELECT
a.account_name,
tc.tech_name,
tc.tech_category,
t.confidence_level,
t.last_found
FROM my_demandbase_data.demandbase.db1_accounts_v2 a
JOIN my_demandbase_data.demandbase.db1_account_technographics t
ON a.account_id = t.account_id
JOIN my_demandbase_data.demandbase.db1_technographics_catalog tc
ON t.tech_id = tc.tech_id
ORDER BY a.account_name, tc.tech_category;Update the Shared Catalog After a Data Collection Change
If your data collection changes, Demandbase grants access to the new share and removes access to the previous share. The existing shared catalog no longer provides access to Demandbase data.
To access your new share, recreate the shared catalog.
Important: Before removing the existing catalog, review any dependencies, including queries, dashboards, and jobs that reference its tables. The CASCADE option removes the catalog and its contained objects. The datasets available in your new share may differ from those in your previous share.
- Run the following command to identify the new share.
SHOW SHARES IN PROVIDER demandbase;- Remove the existing shared catalog.
DROP CATALOG IF EXISTS my_demandbase_data CASCADE;- Create a catalog using the new share. Replace
<NEW_SHARE_NAME>with the share name returned in step 1.
CREATE CATALOG my_demandbase_data
USING SHARE demandbase.<NEW_SHARE_NAME>;- Grant the appropriate privileges to the groups that require access. See Grant Access to the Shared Catalog.
- Verify access to the new catalog. See Verify Access to the Shared Catalog.
Data Security and Privacy in Databricks Zero-Copy
Demandbase uses the following security and privacy controls to protect shared datasets.
| Security Control | Description |
| Tenant isolation | Delta Sharing uses partition filters based on your metastore sharing identifier to restrict access to your organization's data. |
| Zero-copy architecture | You query Demandbase Delta tables directly without copying data into your Databricks storage. |
| Read-only access | You cannot modify, delete, or insert data in shared tables. |
| Query privacy | Queries run on your Databricks compute resources. Demandbase does not have access to your queries or query results. |
| Access removal | When access ends, Demandbase removes the recipient, and the shared catalog immediately stops returning data. |
Troubleshoot Databricks Zero-Copy Integration
| Issue | Possible Cause | Resolution |
The demandbase provider does not appear when running SHOW PROVIDERS. |
Demandbase has not provisioned access, or the sharing identifier does not match your Databricks metastore. | Run SELECT CURRENT_METASTORE(); and confirm the returned identifier with your Demandbase Account Team. Allow at least one minute after provisioning. |
PERMISSION_DENIED when running SHOW PROVIDERS or CREATE CATALOG. |
Your user does not have the USE PROVIDER or CREATE CATALOG privilege. |
Ask your metastore admin to grant the required privileges. |
SCHEMA_NOT_FOUND or no tables appear in the catalog. |
The catalog references an incorrect or previous share, or the query references an incorrect schema. | Run SHOW SHARES IN PROVIDER demandbase; and recreate the catalog using the correct share, if necessary. Confirm that your query references the demandbase schema. |
TABLE_OR_VIEW_NOT_FOUND when querying a specific table. |
The table is not included in your data collection. | See Entity-Dataset Definitions or contact your Demandbase Account Team to confirm dataset availability. |
A previously accessible catalog returns a 403 or permission error. |
Your data collection changed or your access ended. | Verify your available shares and recreate the catalog using the new share, if applicable. Contact your Demandbase Account Team to confirm access. |
Other users receive BROWSE permission errors. |
Users do not have the required catalog privileges. | Grant the appropriate privileges to the group that requires access. |
Get Support for Databricks Zero-Copy Integration
If you encounter issues provisioning or accessing the Databricks share, contact your Demandbase Account Team.
Include the following information to help troubleshoot the issue:
- Databricks metastore sharing identifier returned by
SELECT CURRENT_METASTORE();. - Share name.
- Catalog name.
- SQL query or error message received.
- Screenshots, if applicable.