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
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-azure-sql-input.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -196,7 +196,7 @@ public class GetToDoItems {
196
196
authLevel=AuthorizationLevel.ANONYMOUS)
197
197
HttpRequestMessage<Optional<String>>request,
198
198
@SQLInput(
199
-
name="sqlInput1",
199
+
name="toDoItems",
200
200
commandText="SELECT * FROM dbo.ToDo",
201
201
commandType="Text",
202
202
connectionStringSetting="SqlConnectionString")
@@ -221,7 +221,7 @@ public class GetToDoItem {
221
221
authLevel=AuthorizationLevel.ANONYMOUS)
222
222
HttpRequestMessage<Optional<String>>request,
223
223
@SQLInput(
224
-
name="sqlInput2",
224
+
name="toDoItems",
225
225
commandText="SELECT * FROM dbo.ToDo",
226
226
commandType="Text",
227
227
parameters="@Id={Query.id}",
@@ -253,7 +253,7 @@ public class DeleteToDo {
253
253
authLevel=AuthorizationLevel.ANONYMOUS)
254
254
HttpRequestMessage<Optional<String>>request,
255
255
@SQLInput(
256
-
name="sqlInput3",
256
+
name="toDoItems",
257
257
commandText="dbo.DeleteToDo",
258
258
commandType="StoredProcedure",
259
259
parameters="@Id={Query.id}",
@@ -806,6 +806,7 @@ In the [Java functions runtime library](/java/api/overview/azure/functions/runti
806
806
|**commandText**| Required. The Transact-SQL query command or name of the stored procedure executed by the binding. |
807
807
|**connectionStringSetting**| Required. The name of an app setting that contains the connection string for the database against which the query or stored procedure is being executed. This value isn't the actual connection string and must instead resolve to an environment variable name. |
808
808
|**commandType**| Required. A [CommandType](/dotnet/api/system.data.commandtype) value, which is ["Text"](/dotnet/api/system.data.commandtype#fields) for a query and ["StoredProcedure"](/dotnet/api/system.data.commandtype#fields) for a stored procedure. |
809
+
|**name**| Required. The unique name of the function binding. |
809
810
|**parameters**| Optional. Zero or more parameter values passed to the command during execution as a single string. Must follow the format `@param1=param1,@param2=param2`. Neither the parameter name nor the parameter value can contain a comma (`,`) or an equals sign (`=`). |
@@ -836,6 +836,7 @@ In the [Java functions runtime library](/java/api/overview/azure/functions/runti
836
836
|---------|---------|
837
837
|**commandText**| Required. The name of the table being written to by the binding. |
838
838
|**connectionStringSetting**| Required. The name of an app setting that contains the connection string for the database to which data is being written. This isn't the actual connection string and must instead resolve to an environment variable.|
839
+
|**name**| Required. The unique name of the function binding. |
0 commit comments