---
schema_version: "1"
id: 64083007e641f7639d8621801738c30a3692c305d5a433356221c19f2954f39d
title: Execute SQL Queries from Apex
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/262-0-0/rn_cdp_2026_summer_apex_sfsqlquery.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_cdp_2026_summer_apex_sfsqlquery.htm&release=262.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 56c04922bb214f54e6b74b2336d9b3c06ef95f469f97a5dfe02eaa3745b24fa6
description: Get to a working Data 360-powered Apex app faster. The new sfsqlquery namespace gives Apex developers production-ready SQL execution out of the box. Use these classes to run queries synchronously with row-by-row iteration or asynchronously with chained queueable jobs, complete with typed data accessors and test mocking utilities.
products:
  - Cross Cloud
release: "262"
---
# Execute SQL Queries from Apex

Get to a working Data 360-powered Apex app faster. The new sfsqlquery namespace gives Apex developers production-ready SQL execution out of the box. Use these classes to run queries synchronously with row-by-row iteration or asynchronously with chained queueable jobs, complete with typed data accessors and test mocking utilities.

**Where:** This change applies to Data 360 in the Developer, Enterprise, Performance, and Unlimited editions.

**When:** This change is available starting in June 2026.

#### See Also

- [_Salesforce Developers_: sfsqlquery Namespace](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_sfsqlquery.htm)
- [_Salesforce Release Notes_: Apex: New and Changed Items](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=262&type=5&language=en_US)