Ask a Question related to Coldfusion Database Access, Design and Development.
-
lwd #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
ColdFusion support area and found cfusion_dbconnections_flush(); but this has
been deprecated in ColdFusion MX.
What is the replacement for the above function? I researched this message
board and found question asking about this function in 2004 that had not been
answered.
lwd Guest
-
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... -
Maybe Database connection pools should be managed by Admins instead of Developers using Code?
This would be something that 2003 server and ASP.Net would use, ie, another section of the IIS whereas you could manage connection strings and such... -
prompted to disconnect from a dial-up connection.
Hi ! How do you set up a Network connection so that you are prompted to disconnect from a dial-up connection, and can you set it up to automatic... -
disconnect network connection from host PC
How can I temporarily disconnect a network connection for a network desktop while sitting at my Host (XP Pro) machine without losing the mapping. I... -
SpeedStep cause dial-up connection auto disconnect
Hi, I got a problem with Intel P4 CPU and WinXP Home on notebook, and the Modem is Askey on-board, the problem is after I connect system to ISP,... -
palibrarian #2
Re: Disconnect connection to database in code
I am also trying to break connections to our databases. We need to disconnect to all of them at the same time so we can back them up regularly. Any ideas on how this can be done, now?
palibrarian Guest
-
paross1 #3
Re: Disconnect connection to database in code
Well, you could de-select the Maintain Connections in your data source setup in
CF administrator, so your database connections only last as long as needed. I
suppose that you may pay a performance penalty, but I have ALL of my data
sources set up this way (Oracle, MS SQL, and Access), and have never had any
significant performance issues. However, this is all dependent on your own
situation.
Phil
paross1 Guest
-
MikerRoo #4
Re: Disconnect connection to database in code
For disconnecting individual data sources, the best bet is to configure them
with a short timeout.
In extreme cases, you could use the admin API (CF7) or service factory
(earlier CF) to destroy the datasource and then recreate it dynamically.
For disconnecting all DSN's at once, use the admin API to stop the ODBC
service.
More information on the admin API is
[url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=7&thread[/url]
id=912668#3259306
Good Luck,
-- MikeR
MikerRoo Guest



Reply With Quote

