You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [C# library](functions-dotnet-class-library.md) uses [SqlAttribute](https://github.com/Azure/azure-functions-sql-extension/blob/main/src/SqlAttribute.cs) to define the function, which has the following properties:
495
+
The [C# library](functions-dotnet-class-library.md) uses the [SqlAttribute](https://github.com/Azure/azure-functions-sql-extension/blob/main/src/SqlAttribute.cs)attribute to declare the SQL bindings on the function, which has the following properties:
496
496
497
497
| Attribute property |Description|
498
498
|---------|---------|
@@ -540,7 +540,7 @@ The following table explains the binding configuration properties that you set i
540
540
541
541
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-python"
542
542
543
-
The attribute's constructor takes the SQL command text, the command type, parameters, and the connection string setting name. The command can be a Transact-SQL (T-SQL) query with the command type `System.Data.CommandType.Text` or stored procedure name with the command type `System.Data.CommandType.StoredProcedure`. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring?view=sqlclient-dotnet-core-5.0#Microsoft_Data_SqlClient_SqlConnection_ConnectionString) to the Azure SQL or SQL Server instance.
543
+
The attribute's constructor takes the SQL command text, the command type, parameters, and the connection string setting name. The command can be a Transact-SQL (T-SQL) query with the command type `System.Data.CommandType.Text` or stored procedure name with the command type `System.Data.CommandType.StoredProcedure`. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring?view=sqlclient-dotnet-core-5.0&preserve-view=true#Microsoft_Data_SqlClient_SqlConnection_ConnectionString) to the Azure SQL or SQL Server instance.
544
544
545
545
Queries executed by the input binding are [parameterized](/dotnet/api/microsoft.data.sqlclient.sqlparameter) in Microsoft.Data.SqlClient to reduce the risk of [SQL injection](/sql/relational-databases/security/sql-injection) from the parameter values passed into the binding.
The [C# library](functions-dotnet-class-library.md) uses [SqlAttribute](https://github.com/Azure/azure-functions-sql-extension/blob/main/src/SqlAttribute.cs) to define the function, which has the following properties:
504
+
The [C# library](functions-dotnet-class-library.md) uses the [SqlAttribute](https://github.com/Azure/azure-functions-sql-extension/blob/main/src/SqlAttribute.cs)attribute to declare the SQL bindings on the function, which has the following properties:
505
505
506
506
| Attribute property |Description|
507
507
|---------|---------|
@@ -544,7 +544,7 @@ The following table explains the binding configuration properties that you set i
544
544
## Usage
545
545
546
546
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-python"
547
-
The `CommandText` property is the name of the table where the data is to be stored. The connection string setting name corresponds to the application setting that contains the [connection string](/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring?view=sqlclient-dotnet-core-5.0#Microsoft_Data_SqlClient_SqlConnection_ConnectionString) to the Azure SQL or SQL Server instance.
547
+
The `CommandText` property is the name of the table where the data is to be stored. The connection string setting name corresponds to the application setting that contains the [connection string](/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring?view=sqlclient-dotnet-core-5.0&preserve-view=true#Microsoft_Data_SqlClient_SqlConnection_ConnectionString) to the Azure SQL or SQL Server instance.
548
548
549
549
The output bindings uses the T-SQL [MERGE](/sql/t-sql/statements/merge-transact-sql) statement which requires [SELECT](/sql/t-sql/statements/merge-transact-sql#permissions) permissions on the target database.
The Azure SQL trigger uses [SQL change tracking](/sql/relational-databases/track-changes/about-change-tracking-sql-server) functionality to monitor a SQL table for changes and trigger a function when a row is created, updated, or deleted.
15
15
16
-
For configuration details for change tracking for use with the Azure SQL trigger, see [Set up change tracking](#set-up-change-tracking). For information on setup details of the Azure SQL extension for Azure Functions, see the [SQL binding overview](./functions-bindings-azure-sql.md).
16
+
For configuration details for change tracking for use with the Azure SQL trigger, see [Set up change tracking](#set-up-change-tracking-required). For information on setup details of the Azure SQL extension for Azure Functions, see the [SQL binding overview](./functions-bindings-azure-sql.md).
17
17
18
18
## Example usage
19
19
<aid="example"></a>
@@ -29,7 +29,7 @@ The example refers to a `ToDoItem` class and a corresponding database table:
[Change tracking](#setting-up-change-tracking) is enabled on the database and on the table:
32
+
[Change tracking](#set-up-change-tracking-required) is enabled on the database and on the table:
33
33
34
34
```sql
35
35
ALTERDATABASE [SampleDatabase]
@@ -99,12 +99,12 @@ Isolated worker process isn't currently supported.
99
99
::: zone pivot="programming-language-csharp"
100
100
## Attributes
101
101
102
-
The [C# library](functions-dotnet-class-library.md) uses the [SqlTrigger](https://github.com/Azure/azure-functions-sql-extension/blob/main/src/TriggerBinding/SqlTriggerAttribute.cs) attribute, which has the following properties:
102
+
The [C# library](functions-dotnet-class-library.md) uses the [SqlTrigger](https://github.com/Azure/azure-functions-sql-extension/blob/main/src/TriggerBinding/SqlTriggerAttribute.cs) attribute to declare the SQL trigger on the function, which has the following properties:
103
103
104
104
| Attribute property |Description|
105
105
|---------|---------|
106
106
|**TableName**| Required. The name of the table being monitored by the trigger. |
107
-
|**ConnectionStringSetting**| Required. The name of an app setting that contains the connection string for the database which contains the table being monitored for changes. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring?view=sqlclient-dotnet-core-5.0#Microsoft_Data_SqlClient_SqlConnection_ConnectionString) to the Azure SQL or SQL Server instance.|
107
+
|**ConnectionStringSetting**| Required. The name of an app setting that contains the connection string for the database which contains the table being monitored for changes. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring?view=sqlclient-dotnet-core-5.&preserve-view=true#Microsoft_Data_SqlClient_SqlConnection_ConnectionString) to the Azure SQL or SQL Server instance.|
108
108
109
109
110
110
::: zone-end
@@ -122,7 +122,7 @@ The following table explains the binding configuration properties that you set i
122
122
::: zone-end -->
123
123
124
124
125
-
In addition to the required ConnectionStringSetting [application setting](./functions-how-to-use-azure-function-app-settings.md#work-with-application-settings), the following optional settings can be configured for the SQL trigger:
125
+
In addition to the required ConnectionStringSetting [application setting](./functions-how-to-use-azure-function-app-settings.md#settings), the following optional settings can be configured for the SQL trigger:
0 commit comments