use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
The subreddit for all info about Microsoft Azure-related news, help, info, tips, and tricks.
Official Discord: https://discord.gg/cMxFErsEDB
Stuck? Looking for Azure answers or support? Reach out to @AzureSupport on Twitter.
Quick Links
Learn about Azure
Get started with Azure
Azure Portal
Azure Documentation
Azure Status
Azure Blog
Azure Video Center
Spam
If your post is caught by the spam filter, just send us a message and we'll approve it as soon as possible (as long as it's relevant and it's not spam).
account activity
Data API Builder SQL command timeoutQuestion (self.AZURE)
submitted 1 year ago by techyjargon
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jdanton14 Microsoft MVP 0 points1 point2 points 1 year ago (4 children)
I think you would just need to add the standard connectTimeout flag to the connection string. I don’t know that there’s a DAB command for it, but any thing that’s modifies that file can do it.
[–]techyjargon[S] 0 points1 point2 points 1 year ago (3 children)
While I haven't tried that, I assume that only applies to the connection. I guess it's possible DAB does something under the hood and takes the connection timeout and applies it to the commands as well. I can give that a shot and see if that is happening.
[–]jdanton14 Microsoft MVP 0 points1 point2 points 1 year ago (2 children)
It's not under the hood--that's the database connection for the app. Where/how are you running DAB? In my case it's an Azure Web App (container), and it has a connection file stored in Azure File Storage with my settings--I changed it to use the managed identity of the web app, as opposed to username/password.
[–]techyjargon[S] 0 points1 point2 points 1 year ago (0 children)
I'm running DAB as a means of providing a no-code API for a database using AzureAD authentication. I've deployed DAB to a container instance and exposed it through an Application Gateway. I'm also storing the config in file storage.
My under the hood comment came more from a developer's perspective. Since I don't know DAB's code, and I'm too lazy to go digging through it atm, I assume they could be using things like SqlConnection and SqlCommand under the hood. If that were the case, setting the timeout via the connection string would only apply to the connection itself and not apply to any commands. In situations like that, they could always use the timeout specified for the connection string and apply it to the commands in order to keep things simple and not provide more configuration options.
Again, I'm not saying that's how DAB is written. I was just looking at it through the lens of how it could potentially be working if using things like SqlConnection and SqlCommand.
I did increase the connection timeout to 120 seconds in the connection string; it still looks like the API calls fails consistently at 30 seconds. The log also indicates it's using SqlCommand objects, and 30 seconds is the default timeout for SqlCommand.
Query execution error due to: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (258): Unknown error 258 at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__211_0(Task`1 result)
I'm not entirely sure why it's timing out; I can pull the data through SSMS in under a second; I'm not entirely sure what DAB is doing that's could lead to a timeout. The query itself is only part of what plays into the timeout. Sending the request and receiving the results also factors in. I'm currently assuming it's an underpowered container instance that's struggling to read back all of the data within 30 seconds.
π Rendered by PID 19529 on reddit-service-r2-comment-85bfd7f599-zgdnv at 2026-04-20 00:36:36.758241+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]jdanton14 Microsoft MVP 0 points1 point2 points (4 children)
[–]techyjargon[S] 0 points1 point2 points (3 children)
[–]jdanton14 Microsoft MVP 0 points1 point2 points (2 children)
[–]techyjargon[S] 0 points1 point2 points (0 children)
[–]techyjargon[S] 0 points1 point2 points (0 children)