CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2006
    Location
    Athens, Greece
    Posts
    111

    [RESOLVED] Time out Expired

    Hello gurus,

    i have an application that is accessing a table with 80.000.000++ records that have indexing. when i'm trying to make any action with this table, select, update... i'm taking this error. how i can make the time expire condition bigger?

    Thanks

    VPlag

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Time out Expired

    Increase the ConnectionTimeout property of the connection object to max before running the query.

  3. #3
    Join Date
    Feb 2006
    Location
    Athens, Greece
    Posts
    111

    Unhappy Re: Time out Expired

    I'm still recieving the same error

    my code during the load of the project is

    Code:
        Set VPConnection = New ADODB.Connection
        VPConnection.ConnectionTimeout = 480
        VPConnection.Open (CSTR_CONNECTION)
    Code:
    Public Const CSTR_CONNECTION = "Provider=SQLOLEDB.1;Password=testpwd;Persist Security Info=True;User ID=vp;Initial Catalog=Phones8History;Data Source=kronos"
    Good Luck
    -------------------*-------------------*------------------------
    Today we will see how we can develop:

    Ingredients:

    Espresso, cigarettes and lounge music
    -----------------------------------------------------------------
    Please remember to rate the posts and threads that you find useful

  4. #4
    Join Date
    Feb 2006
    Location
    Athens, Greece
    Posts
    111

    Resolved Re: Time out Expired

    ok!

    i've solved it.
    the problem was to the connection time out of the command object that i was doing updatings....

    Thanks!
    Good Luck
    -------------------*-------------------*------------------------
    Today we will see how we can develop:

    Ingredients:

    Espresso, cigarettes and lounge music
    -----------------------------------------------------------------
    Please remember to rate the posts and threads that you find useful

  5. #5
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Time out Expired

    I was going to post that now. But before I could post I saw that you had done it yourself.

  6. #6
    Join Date
    Jul 2004
    Location
    Chennai, India
    Posts
    1,064

    Re: [RESOLVED] Time out Expired

    Madhivanan

    Failing to plan is Planning to fail

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured