Skip to content

Commit d04a151

Browse files
committed
Link to the 5 steps
1 parent 8634799 commit d04a151

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/odbc/reference/dynamic-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: "Dynamic SQL"
33
title: "Dynamic SQL | Microsoft Docs"
44
ms.custom: ""
5-
ms.date: "06/03/2020"
5+
ms.date: "11/16/2020"
66
ms.prod: sql
77
ms.prod_service: connectivity
88
ms.reviewer: ""
@@ -26,7 +26,7 @@ Although static SQL works well in many situations, there is a class of applicati
2626

2727
The simplest way to execute a dynamic SQL statement is with an EXECUTE IMMEDIATE statement. This statement passes the SQL statement to the DBMS for compilation and execution.
2828

29-
One disadvantage of the EXECUTE IMMEDIATE statement is that the DBMS must go through each of the five steps of processing an SQL statement each time the statement is executed. The overhead involved in this process can be significant if many statements are executed dynamically, and it is wasteful if those statements are similar. To address this situation, dynamic SQL offers an optimized form of execution called prepared execution, which uses the following steps:
29+
One disadvantage of the EXECUTE IMMEDIATE statement is that the DBMS must go through each of the [five steps of processing an SQL statement](processing-a-sql-statement.md) each time the statement is executed. The overhead involved in this process can be significant if many statements are executed dynamically, and it is wasteful if those statements are similar. To address this situation, dynamic SQL offers an optimized form of execution called prepared execution, which uses the following steps:
3030

3131
1. The program constructs an SQL statement in a buffer, just as it does for the EXECUTE IMMEDIATE statement. Instead of host variables, a question mark (?) can be substituted for a constant anywhere in the statement text to indicate that a value for the constant will be supplied later. The question mark is called as a parameter marker.
3232

0 commit comments

Comments
 (0)