×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

I thought that I had it sorted out.

I thought that I had it sorted out.

I thought that I had it sorted out.

(OP)
I thought that I had it sorted out. I got no errors, but it didn't work.

I stepped through the Code and checked the value with Add Watch. Everything was perfect. I hit ExecSQL and no error! Wow, I did it!

Well, no I didn't. I checked the database (I did make a backup in case anything went wrong), but when I looked in the database table, NOTHING had been updated at all.

Do I need a Commit? Is ExecSQL correct or is there a new command now?

RE: I thought that I had it sorted out.

You should only need a commit if you started a transaction. ExecSQL should do what you need it to do. If the database does support transactions, typically you can see what transaction level you're in by looking at a transaction level property.

If you're going through an ODBC driver you could try turning on ODBC trace (in the odbcad32.exe control panel) and see what's being passed on to the database driver.

The TDBConnection (or whatever it is called) might have events to let you monitor what's going through it and if a final commit is happening.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close