https://github.com/pjirsa/sql-sproc-function
https://github.com/pjirsa/sql-sproc-function
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pjirsa/sql-sproc-function
- Owner: pjirsa
- License: mit
- Created: 2023-05-12T15:32:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-26T20:23:57.000Z (almost 2 years ago)
- Last Synced: 2025-02-09T18:52:11.010Z (5 months ago)
- Language: C#
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SQL with Azure Functions
[](https://codespaces.new/pjirsa/sql-sproc-function)Examples of working with SQL bindings, triggers, and direct ADO.NET connections in Azure Functions. These samples are based on code located in [https://github.com/Azure/azure-functions-sql-extension](https://github.com/Azure/azure-functions-sql-extension).
## Try It
1. Clone, or fork then clone, this repo to your local machine.
2. Ensure Visual Studio is installed, or use Azure Function Core Tools.
3. Add local.settings.json file then add the following content.
```
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
"sql_connection": ""
}
}
```
4. Use scripts found in [Database](./Database) folder to create 'Products' and 'ProductsWithIdentity' tables in your database. Insert some sample items to 'Products' table.
5. Add the 'SelectProductsCost' stored procedure in order to test the 'CallSproc' function.
6. Start the function app by debuggin in Visual Studio, or from the command line with `func start`.