Ask a Question related to Coldfusion Database Access, Design and Development.
-
lwd #1
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
-
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... -
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... -
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... -
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... -
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... -
jdeline #2
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
-
paross1 #3
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
-
lwd #4
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
-
paross1 #5
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
-
OldCFer #6
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



Reply With Quote

