Menu

How to change default timeout for _mssql ...

Goesta
2009-02-18
2013-04-29
  • Goesta

    Goesta - 2009-02-18

    Hi,

    maybe this is a silly question, but how do i change the _mssql module property "login_timeout"?

    _mssql.login_timeout = 3

    before next line results in no different (default timeout) behavior of

    dbc = _mssql.connect(...)

    Thanks & regards,

    Goesta

     
    • A

      A - 2009-02-18

      If you're on Linux, older versions of FreeTDS didn't implement timeouts, so it is void for them. See the FreeTDS website for further details.

       

Log in to post a comment.