Disconnect Database Immediately with 0 timeout

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Disconnect Database Immediately with 0 timeout

    If you set the timeout to 0 in Advanced Settings for a data set, will this
    disconnect the data source immediately after it is used? For security reasons,
    I need to close the data set immediately after it is used.

    lwd Guest

  2. Similar Questions and Discussions

    1. Disconnect connection to database in code
      I need to include a statement in my code to "disconnect the connection to the database once you have fetched the data necessary". I researched the...
    2. Database timeout?
      I am using WINDOWS XP SP2 & Dreamweaver MX 2004 on my home PC. I have installed IIS 5.1. I am trying to connect to a small MS ACCESS database and...
    3. Access Database timeout
      Hello all- I have a site hosted by HostMySite. This site USED to be pretty rock-solid, but I have been having tons of problems lately. My issue...
    4. PEAR::DB disconnect closes all database connections
      Dear newsgroup, I've upgraded to PEAR::DB 1.6.5 recently. Unfortunately now the database connection doesn't work as expected anymore :( The...
    5. Session Timeout when trying to read database
      hi all, can you please tell me what i should do to avoid session timeout when displaying my database info in my asp form...
  3. #2

    Default Re: Disconnect Database Immediately with 0 timeout

    Go to the CF admin page, select ODBC Data Sources, click on your datasource and
    click the CF Settings button. You'll see a checkbox that permits you to remain
    connected to your datasource or not. Make sure you have it selected to NOT
    maintain datasource connectivity.

    jdeline Guest

  4. #3

    Default Re: Disconnect Database Immediately with 0 timeout

    Like I said in my answer to your previous post, if you de-select Maintain
    Database Connections in your data source configuration in CF Admin, your
    database will be released after each query/ transaction.

    Phil

    paross1 Guest

  5. #4

    Default Re: Disconnect Database Immediately with 0 timeout

    Phil,
    Thanks again. I understood this as the answer also, however, I received a
    subsequent message that said "For disconnecting individual data sources, the
    best bet is to configure them with a short timeout."

    Are you saying that the timeout (min) parameter refers to "Maintain Database
    Connections" and that once you unclick this setting that the database will
    close after each query/transaction?

    I've received emails saying: Regarding connections ? when are they broken ?
    Broken at the end of each user session? Broken at the end of every call?
    Broken after a specific time?

    You are saying that they are broken at the end of every call if this parameter
    is checked.

    lwd Guest

  6. #5

    Default Re: Disconnect Database Immediately with 0 timeout

    I am saying that if you un-select / un-check Maintain Connections, the connection between ColdFusion and your database should be dropped after each transaction.

    Phil
    paross1 Guest

  7. #6

    Default Re: Disconnect Database Immediately with 0 timeout

    The timeout is how long it will wait while running a query action before
    returning
    an error. For instance, you're querying a table that has an exlusive lock by
    another
    process. How long should it wait? It has nothing to do with releasing the
    connection
    after the query has completed.

    OldCFer Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139