# REST endpoints from Azure SQL

Best practice for production apps is to use REST as the data layer to access data and not directly integrate to SQL using the SQL data provider. The SQL data provider will be squiggled in blue to indicate it is not recommended, together with a message to use [REST](https://docs.jigx.com/building-apps-with-jigx/data/data-providers/rest) instead.

1. Configure your Azure SQL database to call external REST endpoints. To learn how to call external REST endpoints from Azure SQL databases, read:
   * Microsoft Learn: [sp\_invoke\_external\_rest\_endpoint (Transact-SQL)](https://learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-invoke-external-rest-endpoint-transact-sql?view=azuresqldb-current\&tabs=request-headers)
   * GitHub sample: [azure-sql-db-invoke-external-rest-endpoints](https://github.com/Azure-Samples/azure-sql-db-invoke-external-rest-endpoints)
2. Now use the [REST data provider ](https://docs.jigx.com/building-apps-with-jigx/data/data-providers/rest)to configure your Jigx solution to integrate with your Azure SQL data.
