Skip to content

Commit 552fc6b

Browse files
committed
clearing up attributes
1 parent 1d71560 commit 552fc6b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

articles/azure-functions/functions-bindings-azure-sql-input.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def main(req: func.HttpRequest, todoItems: func.SqlRowList) -> func.HttpResponse
492492
::: zone pivot="programming-language-csharp"
493493
## Attributes
494494

495-
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:
496496

497497
| Attribute property |Description|
498498
|---------|---------|
@@ -540,7 +540,7 @@ The following table explains the binding configuration properties that you set i
540540

541541
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-python"
542542

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.
544544

545545
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.
546546

articles/azure-functions/functions-bindings-azure-sql-output.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def main(req: func.HttpRequest, todoItems: func.Out[func.SqlRow], requestLog: fu
501501
::: zone pivot="programming-language-csharp"
502502
## Attributes
503503

504-
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:
505505

506506
| Attribute property |Description|
507507
|---------|---------|
@@ -544,7 +544,7 @@ The following table explains the binding configuration properties that you set i
544544
## Usage
545545

546546
::: 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.
548548

549549
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.
550550

articles/azure-functions/functions-bindings-azure-sql-trigger.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ zone_pivot_groups: programming-languages-set-functions-lang-workers
1313

1414
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.
1515

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).
1717

1818
## Example usage
1919
<a id="example"></a>
@@ -29,7 +29,7 @@ The example refers to a `ToDoItem` class and a corresponding database table:
2929

3030
:::code language="sql" source="~/functions-sql-todo-sample/sql/create.sql" range="1-7":::
3131

32-
[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:
3333

3434
```sql
3535
ALTER DATABASE [SampleDatabase]
@@ -99,12 +99,12 @@ Isolated worker process isn't currently supported.
9999
::: zone pivot="programming-language-csharp"
100100
## Attributes
101101

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:
103103

104104
| Attribute property |Description|
105105
|---------|---------|
106106
| **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.|
108108

109109

110110
::: zone-end
@@ -122,7 +122,7 @@ The following table explains the binding configuration properties that you set i
122122
::: zone-end -->
123123

124124

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:
126126

127127
| App Setting | Description|
128128
|---------|---------|

0 commit comments

Comments
 (0)