Is there a ColdFusion feature that shows whether or not an INSERT query worked?
Right now I'm using SELECT queries after the INSERTs to make sure records got appended-I look up what just got added to make sure it's there. Is there a better way?
Thank you very much.
i have to ask, why would the record not be there? to me, if the query did not throw an error - the record should be there. i guess i need to understand the scenario in which you would need to do this.
=========================================
Don't sweat the petty things and don't pet the sweaty things.
you could alwsy check the debug settings if you switch them on, as each sql statement completes it will show the results at the bottom of the page along side your avraiables etc.
thsiswould be the best way to code I would suggest, add your IP to an allow list so no one else sees the debug. all don through the control panel in CF admin.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.