+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Connection Time-out

  1. #1
    Barn Newbie harish is on a distinguished road harish's Avatar
    Join Date
    Apr 2009
    Posts
    37
    Rep Power
    3

    Connection Time-out

    Hi,

    There are sometimes on my reports, connection time-out error occurs.

    Let me Explain:
    For the first time the report is generated well. If you keep the report window idle for sometime, and then click on Refresh button, it generate the error of connection time-out.

    The same report gets re-generated, if we generate it as an fresh report from the given link (as on portal listing).

    How do I ensure that connection timeout does not occur on the report even if the report generated and kept idle for some time on the portal?

    Regards,
    ~Harish

  2. #2
    I like Data Cubes too... Lauramc has a spectacular aura about Lauramc has a spectacular aura about Lauramc's Avatar
    Join Date
    Mar 2008
    Location
    Far Far Away
    Posts
    387
    Real Name
    Laura
    Rep Power
    5

    From your description I can only guess that the session is timing out. I'm not an expert on that specifically. The only thing I can think of is to enable auto-refresh on the report and have it refresh every 20 or 30 minutes. This presumably would cause the session to refresh as well. The downside to this approach is that it results in more traffic on the server.

    Is this a report that the users expect to update at a given interval?
    "The Enrichment Center is required to remind you that first you will be baked, then there will be cake." - GLaDOS

  3. #3
    Barn Newbie harish is on a distinguished road harish's Avatar
    Join Date
    Apr 2009
    Posts
    37
    Rep Power
    3

    Thanks for the reply.

    It seems to be a doable approach, along with the downside you have mentioned.

    There is none of my reports till now, which refreshes after a given interval. They all are more of static reports.

    Regards,
    ~Harish

  4. #4
    I like Data Cubes too... Lauramc has a spectacular aura about Lauramc has a spectacular aura about Lauramc's Avatar
    Join Date
    Mar 2008
    Location
    Far Far Away
    Posts
    387
    Real Name
    Laura
    Rep Power
    5

    So basically this is to accomodate users that leave their browser window open all day and want to be able to refer back to the report?

    If the data does not change during the day, you might advise them to export the report instead of going with the auto-refresh.

    Just my .02.
    "The Enrichment Center is required to remind you that first you will be baked, then there will be cake." - GLaDOS

  5. #5
    Barn Newbie harish is on a distinguished road harish's Avatar
    Join Date
    Apr 2009
    Posts
    37
    Rep Power
    3

    To an extent you are correct. But I am getting this connection time-out on the very first try of generating the reports.

    i.e. I logged in --> navigated to my reports --> passing parameters --> click View Reports and baaaaaaaaannnnnnnnng ....CONNECTION TIME OUT. Re-Try with clicking on View Report or sometimes go back and pass on the parameters again --> view report and then it starts generating the report.

    That's the problem.

    Regards,
    ~Harish

  6. #6
    I like Data Cubes too... Lauramc has a spectacular aura about Lauramc has a spectacular aura about Lauramc's Avatar
    Join Date
    Mar 2008
    Location
    Far Far Away
    Posts
    387
    Real Name
    Laura
    Rep Power
    5

    OK so I think I have figured out what you need to do.

    1. Select your datasource and click on the edit button near the connection string text box.
    2. A window called Connection Properties should appear.
    3. Click the Advanced button, which displays the properties of your data source.
    4. Scroll up to the Connect Timeout property.
    5. Increase the number in the timeout property (maybe try five minutes or 300).

    The problem you are having may be due to high server load or a slow connection to a remote server. Increasing the timeout should solve this (unless the DB is offline).

    Good Luck!
    "The Enrichment Center is required to remind you that first you will be baked, then there will be cake." - GLaDOS

  7. #7
    Barn Newbie harish is on a distinguished road harish's Avatar
    Join Date
    Apr 2009
    Posts
    37
    Rep Power
    3

    How about having the property set to 0.

    0 - indicates no time-out.

    Am I correct with? If not, pls. give an idea about value 0 in the connection timeout property.

    Regards,
    ~Harish

  8. #8
    I like Data Cubes too... Lauramc has a spectacular aura about Lauramc has a spectacular aura about Lauramc's Avatar
    Join Date
    Mar 2008
    Location
    Far Far Away
    Posts
    387
    Real Name
    Laura
    Rep Power
    5

    The number you put in the timeout is the length of time that the connection will wait for a response. So increasing the number will give it longer to try and resolve. The error message is thrown when the connection timeout has been reached (for example if it takes more than 15 seconds and the timeout is set to 15, then the error appears).

    So you'll want to make that number larger. Remember that whatever number you put there is the number of seconds the connection will attempt to resolve.

    Hopefully this helps
    "The Enrichment Center is required to remind you that first you will be baked, then there will be cake." - GLaDOS

  9. #9
    Barn Newbie harish is on a distinguished road harish's Avatar
    Join Date
    Apr 2009
    Posts
    37
    Rep Power
    3

    Thanks for the details.

    I understand the value in property.

    How do I set the value for "No Connection Time-out" setting?

    Regards,
    ~Harish

  10. #10
    I like Data Cubes too... Lauramc has a spectacular aura about Lauramc has a spectacular aura about Lauramc's Avatar
    Join Date
    Mar 2008
    Location
    Far Far Away
    Posts
    387
    Real Name
    Laura
    Rep Power
    5

    The initial data connection to the server is the timeout I instructed you about earlier, and it is this timeout that must have a property (I tried unsetting it and it would not accept null). You probably would not want to set it that way anyway because that would mean that if your database was offline your connection would never close.

    However, I believe the connection timeout for a dataset is not set by default; which means that once the database connection is made the query will try to execute until it gets a response from the server, but the initial connection must have a timeout property.

    Therefore, if you just set it really high, such as 300 seconds, it should suffice. If your connection is taking longer than that you probably have another problem with the database.
    "The Enrichment Center is required to remind you that first you will be baked, then there will be cake." - GLaDOS

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. Database Connection Problem
    By todd2006 in forum .NET Development
    Replies: 1
    Last Post: April 7th, 2009, 02:08 PM
  2. Replies: 8
    Last Post: March 20th, 2009, 10:03 AM
  3. Update sql connection string in web config
    By peebman2000 in forum .NET Development
    Replies: 5
    Last Post: April 18th, 2008, 01:23 PM
  4. Connection String & Record Set Functions
    By mehere in forum ASP Code Samples
    Replies: 0
    Last Post: March 21st, 2008, 01:07 PM

Bookmarks

Posting Permissions

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

SEO by vBSEO