Search code examples
c#sqltimeout

What does SQLcommandTimeout = -1 mean?


Recently I saw this value set in some projects, I will like to know what it exactly means, default or max allowed?


Solution

  • If the timeout is set to a value less than 1, it will set the timeout to infinity: it waits forever until the command has been executed or failed.