<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Support for SQL Transactions?</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=8930115" />
  <subtitle>Support for SQL Transactions?</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=8930115</id>
  <updated>2013-05-26T09:09:08Z</updated>
  <dc:date>2013-05-26T09:09:08Z</dc:date>
  <entry>
    <title>Automatic reply: New Message from Martin Sloan in Administration XML (AXL)</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8949088" />
    <author>
      <name>Marco Menozzi</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8949088</id>
    <updated>2012-11-30T15:09:50Z</updated>
    <published>2012-11-30T15:09:50Z</published>
    <summary type="html">I'm out of office today from 1 p.m to 6 p.m.
In case of urgency please leave a message on the mobile phone.

Marco</summary>
    <dc:creator>Marco Menozzi</dc:creator>
    <dc:date>2012-11-30T15:09:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Support for SQL Transactions?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8950787" />
    <author>
      <name>Martin Sloan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8950787</id>
    <updated>2012-11-30T15:08:32Z</updated>
    <published>2012-11-30T15:08:32Z</published>
    <summary type="html">David,
Many thanks.  I was curious about this for the reason of taking care with my sql messaging so we're on the same page.  This is all in lab/dev mode.  I didn't know sql statements could be chained so that'll save some overhead, thanks!
Marty</summary>
    <dc:creator>Martin Sloan</dc:creator>
    <dc:date>2012-11-30T15:08:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: Support for SQL Transactions?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8943283" />
    <author>
      <name>Ludwig Balke</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8943283</id>
    <updated>2012-11-30T09:27:06Z</updated>
    <published>2012-11-30T09:27:06Z</published>
    <summary type="html">I have a problem adding analog devices to a VGx with a security profile having secure mode enabled.
Using addGatewaySccpEndpoints results in error "The specified Security Profile is not valid for this device type"
Inspired by your post, I tried the follwoing:
addPhone with Standard Non-Secure profile
do executeUpdateSql with
insert into mgcpdevicemember ...
update device set fksecurityprofile=...
Result: Error 480: The security mode of every real device on any given analog gateway must remain consistent with that of every other device on that gateway...
Hence I tried:

update device set fksecurityprofile=...
insert into mgcpdevicemember ...

And now the result: Error 448: The specified Security Profile is not valid for this device type
That means, these business rules are implemented as triggers activated by each single action (insert/update).
Question: Is there any chance to postpone application of these business rules until the end of transaction?
There must be same trick, since manually (GUI) one can add these phones. 
 
 
 
 
 </summary>
    <dc:creator>Ludwig Balke</dc:creator>
    <dc:date>2012-11-30T09:27:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Support for SQL Transactions?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8934445" />
    <author>
      <name>David Staudt</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8934445</id>
    <updated>2012-11-30T00:27:22Z</updated>
    <published>2012-11-30T00:27:22Z</published>
    <summary type="html">My understanding is that the executeSqlUpdate SQL statement is under-the-covers wrapped in a transaction when executed.  It is possible to include multiple SQL statements in the request (separated by semi-colons), with the effect being a transaction set.
Take care with this, as you are updating a mission-critical real-time database - design and testing should be done to ensure that write locks and other DB delays are absolutely minimized.
 
 </summary>
    <dc:creator>David Staudt</dc:creator>
    <dc:date>2012-11-30T00:27:22Z</dc:date>
  </entry>
  <entry>
    <title>Support for SQL Transactions?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8930114" />
    <author>
      <name>Martin Sloan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8930114</id>
    <updated>2012-11-29T20:53:03Z</updated>
    <published>2012-11-29T20:53:03Z</published>
    <summary type="html">Just wondering if anyone knows whether there is support for sql transactions when using the executeSQL methods?
 
Thanks</summary>
    <dc:creator>Martin Sloan</dc:creator>
    <dc:date>2012-11-29T20:53:03Z</dc:date>
  </entry>
</feed>

