If you are using SQL Server, read the Books Online under Help
in SQL Query Analyzer. Look into @@ROWCOUNT, RAISERROR, BEGIN
TRANSACTION, ROLLBACK TRANSACTION. Also look into CFTRANSACTION in
CF.
A quick, simple way is to run a select immediately following
the insert. If the record is there, the insert was successful.
This is just a quick and dirty way to check. There are better
options.