# Automation Script - Commit

**URL:** <https://forums.toadworld.com/t/automation-script-commit/6882>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [September 23, 2011, 10:01am UTC](https://forums.toadworld.com/t/automation-script-commit/6882 "2011-09-23T10:01:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CPK\_Premier](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/cpk_premier/32/10262_2.png) [@CPK\_Premier](https://forums.toadworld.com/u/CPK_Premier)\
**Post date:** [September 23, 2011, 10:01am UTC](https://forums.toadworld.com/t/automation-script-commit/6882/1 "2011-09-23T10:01:11Z")

</div>

Was happening in 2.7 and still now in 3.0.

Have Automation script with three tasks.

Import  
Insert SQL query  
Update SQL query.

In the log notes at bottom is says both queries return 0 records.

After completing when I query the related tables the Insert and Updates do not appear.

However, if I reconnect to the Database in the connection area I am prompted to commit changes. When I accept and reconnect, the inserts and updates appear.

How and where can I make the sql changes seamless/commit without having to reconnect.

Again, the log says the queries return 0 records.

Thanks.

---

<div class="post-metadata">

**Author:** ![Debbie\_Peabody](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/debbie_peabody/32/18_2.png) [@Debbie\_Peabody](https://forums.toadworld.com/u/Debbie_Peabody)\
**Post date:** [September 23, 2011, 11:52am UTC](https://forums.toadworld.com/t/automation-script-commit/6882/2 "2011-09-23T11:52:26Z")

</div>

Your description of your issue doesn’t ring any bells. Have I looked at your scripts before? Can you send me your scripts and all dependant files? I will take a look. Please include a verbose log file and the select, insert, delete scripts. I will take a look. (Also, what database are you connected to and how do you connect? Please send your connections.xml)

Debbie  
[dpeabody@quest.com](mailto:dpeabody@quest.com)

---

<div class="post-metadata">

**Author:** ![CPK\_Premier](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/cpk_premier/32/10262_2.png) [@CPK\_Premier](https://forums.toadworld.com/u/CPK_Premier)\
**Post date:** [September 27, 2011, 9:23am UTC](https://forums.toadworld.com/t/automation-script-commit/6882/3 "2011-09-27T09:23:25Z")

</div>

“Auto Commit” was turned off.

I turned it on and the Automation script did commit the updates.

I’m not sure if I want Auto commit ON across every editor connection, but I’ll cross that bridge later.

Thanks and I’ll review the log from now as a first stab.

CK

---

<div class="post-metadata">

**Author:** ![Debbie\_Peabody](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/debbie_peabody/32/18_2.png) [@Debbie\_Peabody](https://forums.toadworld.com/u/Debbie_Peabody)\
**Post date:** [September 27, 2011, 10:33am UTC](https://forums.toadworld.com/t/automation-script-commit/6882/4 "2011-09-27T10:33:06Z")

</div>

You could add commit to the script you are running instead and leave Auto Commit off. Give that a try.

Debbie
