An Azure relational database service.
Hello @Kat_St
If you want just to query some data from Azure SQL DB and send a command to Iot Device, you can use Azure Function with Time Trigger(Runs every X minutes) or invoke it by HTTP request.
Azure Function supports SQL DB connection and can send messages to Iot Device using cloud-to-device messages, device-twins or direct-methods.
https://learn.microsoft.com/en-us/azure/azure-functions/functions-scenario-database-table-cleanup?toc=/azure/azure-sql/toc.json
https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-direct-methods
If you want to send a command to Iot Device when for example Table is modified in SQL Database you can use LogicApp + Function.
LogicApp can be triggered when Table in Azure SQL DB is created or modified.
LogicApp can invoke Azure Function with HTTP request.
https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-sqlazure?toc=/azure/azure-sql/toc.json
https://learn.microsoft.com/en-us/azure/connectors/connectors-native-http
One more option is to use LogicApp together with IoT Central.
LogicApp is triggered when Table in Azure SQL DB is created or modified.
LogicApp can send command to Iot Device via IoT Central
https://learn.microsoft.com/en-us/azure/iot-central/core/howto-configure-rules-advanced