Skip to content

Commit c880193

Browse files
committed
docs: Add introductory paragraph before first H2 heading
Moved intro content between H1 and H2 to resolve blocking validation issue. Restructured to have brief intro paragraph after H1, then 'Types of batches' H2 section with detailed explanation.
1 parent 2adedb5 commit c880193

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/odbc/reference/develop-app/batches-of-sql-statements.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ helpviewer_keywords:
1515
---
1616
# Batches of SQL Statements
1717

18-
## Overview
18+
A batch of SQL statements is a group of two or more SQL statements or a single SQL statement that has the same effect as a group of two or more SQL statements. Batching statements can improve performance by reducing network traffic and allowing the data source to optimize execution.
1919

20-
A batch of SQL statements is a group of two or more SQL statements or a single SQL statement that has the same effect as a group of two or more SQL statements. In some implementations, the entire batch statement is executed before any results are available. This is often more efficient than submitting statements separately, because network traffic can often be reduced and the data source can sometimes optimize execution of a batch of SQL statements. In other implementations, calling **SQLMoreResults** triggers the execution of the next statement in the batch. ODBC supports the following types of batches:
20+
## Types of batches
21+
22+
In some implementations, the entire batch statement is executed before any results are available. This is often more efficient than submitting statements separately, because network traffic can often be reduced and the data source can sometimes optimize execution of a batch of SQL statements. In other implementations, calling **SQLMoreResults** triggers the execution of the next statement in the batch. ODBC supports the following types of batches:
2123

2224
- **Explicit Batches** An *explicit batch* is two or more SQL statements separated by semicolons (;). For example, the following batch of SQL statements opens a new sales order. This requires inserting rows into both the Orders and Lines tables. Note that there's no semicolon after the last statement.
2325

0 commit comments

Comments
 (0)