Skip to content

Commit ecc9d42

Browse files
committed
fix: Fix batches of sql statements
1 parent 7d8891d commit ecc9d42

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: "Batches of SQL Statements"
33
description: "Batches of SQL Statements"
44
author: David-Engel
55
ms.author: davidengel
6-
ms.date: "01/19/2017"
6+
ms.date: "01/22/2026"
7+
ai-usage: ai-assisted
78
ms.service: sql
89
ms.subservice: connectivity
910
ms.topic: conceptual
@@ -41,18 +42,18 @@ A batch of SQL statements is a group of two or more SQL statements or a single S
4142
4243
The **CREATE PROCEDURE** statement itself is not a batch of SQL statements. However, the procedure it creates is a batch of SQL statements. No semicolons separate the two **SELECT** statements because the **CREATE PROCEDURE** statement is specific to SQL Server, and SQL Server does not require semicolons to separate multiple statements in a **CREATE PROCEDURE** statement.
4344
44-
- **Arrays of Parameters** Arrays of parameters can be used with a parameterized SQL statement as an effective way to perform bulk operations. For example, arrays of parameters can be used with the following **INSERT** statement to insert multiple rows into the Lines table while executing only a single SQL statement:
45+
- **Arrays of Parameters** - Arrays of parameters can be used with a parameterized SQL statement as an effective way to perform bulk operations. For example, arrays of parameters can be used with the following **INSERT** statement to insert multiple rows into the Lines table while executing only a single SQL statement:
4546
4647
```
4748
INSERT INTO Lines (OrderID, Line, PartID, Quantity)
4849
VALUES (?, ?, ?, ?)
4950
```
5051
51-
If a data source does not support arrays of parameters, the driver can emulate them by executing the SQL statement once for each set of parameters. For more information, see [Statement Parameters](../../../odbc/reference/develop-app/statement-parameters.md) and [Arrays of Parameter Values](../../../odbc/reference/develop-app/arrays-of-parameter-values.md), later in this section.
52+
If a data source doesn't support arrays of parameters, the driver can emulate them by executing the SQL statement once for each set of parameters. For more information, see [Statement Parameters](../../../odbc/reference/develop-app/statement-parameters.md) and [Arrays of Parameter Values](../../../odbc/reference/develop-app/arrays-of-parameter-values.md), later in this article.
5253
53-
The different types of batches cannot be mixed in an interoperable manner. That is, how an application determines the result of executing an explicit batch that includes procedure calls, an explicit batch that uses arrays of parameters, and a procedure call that uses arrays of parameters is driver-specific.
54+
The different types of batches can't be mixed in an interoperable manner. That is, how an application determines the result of executing an explicit batch that includes procedure calls, an explicit batch that uses arrays of parameters, and a procedure call that uses arrays of parameters is driver-specific.
5455
55-
This section contains the following topics.
56+
## Related content
5657
5758
- [Result-Generating and Result-Free Statements](../../../odbc/reference/develop-app/result-generating-and-result-free-statements.md)
5859

0 commit comments

Comments
 (0)