What is the difference between connection timeout and command timeout?
In our application sometimes it is showing a timeout error. When we increased the command time
ConnectionTimeout is the time your code should wait when trying to open the connection to the DB
CommandTimeout is the time your code should wait for your SQL code to execute.
If you're hitting command timeout your SQL is taking a long time to execute, so you may want to check your query. If your query is optimized, then raising the command timeout may be the only thing to make your client work.