Command TimeOut Data Access Application Block

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Craig Thompson

    #1

    Command TimeOut Data Access Application Block

    Does anyone know of a way to set the Command TimeOut when you are using the
    DAAB? Am I going to have to modify DAAB code to accept a new parameter?...
    BTW, setting the connection timeout in the connection string doesn't help my
    problem.

    Thanks,
    Craig


  • Tiki Wan

    #2
    RE: Command TimeOut Data Access Application Block

    You can try this

    SqlCommand command = new SqlCommand();
    command.Command Timeout = 100;


    Hope this help.

    --
    Tiki, C# Team
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/cpyright.htm

    Comment

    Working...