DAB stored procedure timeout #2624
-
Hi everyone, What is the setting to define the timeout for a stored procedure accessed by DAB? I'm getting the following timeout error:
^^ The stored procedure needs a bit more time to complete. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
DAB doesn't interact with your server's query timeout and won't be able to change it for you. The error message you see is being returned to you from your server through DAB. To change your query time out will require you to do so directly with the server that you are using with DAB. If it is an MSSQL Server I know Sql Server Management Studio has a Connections property where this can be changed. |
Beta Was this translation helpful? Give feedback.
-
I know this is set as answered, but I wanted to add a solution that we use, that I couldn't find easily online: adding the {
"$schema": "https://github.com/Azure/data-api-builder/releases/download/v1.4.27/dab.draft.schema.json",
"data-source": {
"database-type": "mssql",
"connection-string": "Server=myServer;Database=myDb;Trusted_Connection=True;TrustServerCertificate=True;Encrypt=True;Command Timeout=240;",
...
} |
Beta Was this translation helpful? Give feedback.
DAB doesn't interact with your server's query timeout and won't be able to change it for you. The error message you see is being returned to you from your server through DAB. To change your query time out will require you to do so directly with the server that you are using with DAB. If it is an MSSQL Server I know Sql Server Management Studio has a Connections property where this can be changed.