Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

After <cfquery> & <cfoutput> how do I close file(s)?

Status
Not open for further replies.

josel

Programmer
Joined
Oct 16, 2001
Messages
716
Location
US
Howdie friends!

I am just wondering how to close a file after I am through with <cfinquiry>/<cfoutput>.

I am not sure if close file everytime you run a query is a good idea (I have worked with applications where closing files put a heavy burden on server) and at the same time wonder if not closing them exposes the files to corruption or possibly locking other queries ...

Any comments on this will be appreciated;


josel
If you have the knowledge, consult and educate those who need it! - Jose Lerebours
 
You dont need to close the database connection like asp. Connections are cached. This is set in the server administrator and is used to improve performance. Apparently this should not be used with access as it can lead to the db being corrupt but I have never ever seen this happen.

HTH

Kola
 
pigsie,

Thank you for responding!

I can't do away with old habit of thinking in known language and try to write in new languare ... Not to mention making sure I don't mix the two 8-)

Regards;

josel If you have the knowledge, consult and educate those who need it! - Jose Lerebours
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top