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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -196,6 +196,7 @@ public class GetToDoItems {
196
196
authLevel=AuthorizationLevel.ANONYMOUS)
197
197
HttpRequestMessage<Optional<String>>request,
198
198
@SQLInput(
199
+
name="toDoItems",
199
200
commandText="SELECT * FROM dbo.ToDo",
200
201
commandType="Text",
201
202
connectionStringSetting="SqlConnectionString")
@@ -220,6 +221,7 @@ public class GetToDoItem {
220
221
authLevel=AuthorizationLevel.ANONYMOUS)
221
222
HttpRequestMessage<Optional<String>>request,
222
223
@SQLInput(
224
+
name="toDoItems",
223
225
commandText="SELECT * FROM dbo.ToDo",
224
226
commandType="Text",
225
227
parameters="@Id={Query.id}",
@@ -251,6 +253,7 @@ public class DeleteToDo {
251
253
authLevel=AuthorizationLevel.ANONYMOUS)
252
254
HttpRequestMessage<Optional<String>>request,
253
255
@SQLInput(
256
+
name="toDoItems",
254
257
commandText="dbo.DeleteToDo",
255
258
commandType="StoredProcedure",
256
259
parameters="@Id={Query.id}",
@@ -803,6 +806,7 @@ In the [Java functions runtime library](/java/api/overview/azure/functions/runti
803
806
|**commandText**| Required. The Transact-SQL query command or name of the stored procedure executed by the binding. |
804
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. |
805
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. |
806
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 (`=`). |
@@ -819,6 +836,7 @@ In the [Java functions runtime library](/java/api/overview/azure/functions/runti
819
836
|---------|---------|
820
837
|**commandText**| Required. The name of the table being written to by the binding. |
821
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