I am using TIBSQL, TIBDatabase and TIBTransaction components. This code is not
fitting there.
Would you please provide me Firebird Tools Group mail ID?
On Friday, 13 January 2017 11:15 AM, "Maya Opperman [email protected]
[firebird-support]" <[email protected]> wrote:
Hi Vishal, >I need to understand how to set Wait/No Wait Transaction in
firebird. I think you mean in Delphi? Might be better to ask on the Firebird
tools group, but I have replied below >Also I have one doubt that I when we
start transaction through code as shown below, the transaction locks particular
rows in the table or it locks entire table? I think you will be fine as long as
you use generator to get your ID’s if you use auto-incremented numeric primary
keys. Delphi code snippet for FIBPlus would be:
sqlMain.Transaction.TPBMode := tpbDefault; sqlMain.Transaction.TRParams.Clear;
sqlMain.Transaction.TRParams.Add('read_committed');
sqlMain.Transaction.TRParams.Add('rec_version');
sqlMain.Transaction.TRParams.Params.Add('nowait'); //try
sqlMain.Transaction.StartTransaction; try //Have Insert SQL Execution here
sqlMain.Transaction.Commit; except on E: Exception do begin
sqlMain.Transaction.Rollback; raise; end; end; FireDac would be
quite similar. Cheers Maya #yiv6077816467 #yiv6077816467 --
#yiv6077816467ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px
0;padding:0 10px;}#yiv6077816467 #yiv6077816467ygrp-mkp hr {border:1px solid
#d8d8d8;}#yiv6077816467 #yiv6077816467ygrp-mkp #yiv6077816467hd
{color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px
0;}#yiv6077816467 #yiv6077816467ygrp-mkp #yiv6077816467ads
{margin-bottom:10px;}#yiv6077816467 #yiv6077816467ygrp-mkp .yiv6077816467ad
{padding:0 0;}#yiv6077816467 #yiv6077816467ygrp-mkp .yiv6077816467ad p
{margin:0;}#yiv6077816467 #yiv6077816467ygrp-mkp .yiv6077816467ad a
{color:#0000ff;text-decoration:none;}#yiv6077816467 #yiv6077816467ygrp-sponsor
#yiv6077816467ygrp-lc {font-family:Arial;}#yiv6077816467
#yiv6077816467ygrp-sponsor #yiv6077816467ygrp-lc #yiv6077816467hd {margin:10px
0px;font-weight:700;font-size:78%;line-height:122%;}#yiv6077816467
#yiv6077816467ygrp-sponsor #yiv6077816467ygrp-lc .yiv6077816467ad
{margin-bottom:10px;padding:0 0;}#yiv6077816467 #yiv6077816467actions
{font-family:Verdana;font-size:11px;padding:10px 0;}#yiv6077816467
#yiv6077816467activity
{background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv6077816467
#yiv6077816467activity span {font-weight:700;}#yiv6077816467
#yiv6077816467activity span:first-child
{text-transform:uppercase;}#yiv6077816467 #yiv6077816467activity span a
{color:#5085b6;text-decoration:none;}#yiv6077816467 #yiv6077816467activity span
span {color:#ff7900;}#yiv6077816467 #yiv6077816467activity span
.yiv6077816467underline {text-decoration:underline;}#yiv6077816467
.yiv6077816467attach
{clear:both;display:table;font-family:Arial;font-size:12px;padding:10px
0;width:400px;}#yiv6077816467 .yiv6077816467attach div a
{text-decoration:none;}#yiv6077816467 .yiv6077816467attach img
{border:none;padding-right:5px;}#yiv6077816467 .yiv6077816467attach label
{display:block;margin-bottom:5px;}#yiv6077816467 .yiv6077816467attach label a
{text-decoration:none;}#yiv6077816467 blockquote {margin:0 0 0
4px;}#yiv6077816467 .yiv6077816467bold
{font-family:Arial;font-size:13px;font-weight:700;}#yiv6077816467
.yiv6077816467bold a {text-decoration:none;}#yiv6077816467 dd.yiv6077816467last
p a {font-family:Verdana;font-weight:700;}#yiv6077816467 dd.yiv6077816467last p
span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv6077816467
dd.yiv6077816467last p span.yiv6077816467yshortcuts
{margin-right:0;}#yiv6077816467 div.yiv6077816467attach-table div div a
{text-decoration:none;}#yiv6077816467 div.yiv6077816467attach-table
{width:400px;}#yiv6077816467 div.yiv6077816467file-title a, #yiv6077816467
div.yiv6077816467file-title a:active, #yiv6077816467
div.yiv6077816467file-title a:hover, #yiv6077816467 div.yiv6077816467file-title
a:visited {text-decoration:none;}#yiv6077816467 div.yiv6077816467photo-title a,
#yiv6077816467 div.yiv6077816467photo-title a:active, #yiv6077816467
div.yiv6077816467photo-title a:hover, #yiv6077816467
div.yiv6077816467photo-title a:visited {text-decoration:none;}#yiv6077816467
div#yiv6077816467ygrp-mlmsg #yiv6077816467ygrp-msg p a
span.yiv6077816467yshortcuts
{font-family:Verdana;font-size:10px;font-weight:normal;}#yiv6077816467
.yiv6077816467green {color:#628c2a;}#yiv6077816467 .yiv6077816467MsoNormal
{margin:0 0 0 0;}#yiv6077816467 o {font-size:0;}#yiv6077816467
#yiv6077816467photos div {float:left;width:72px;}#yiv6077816467
#yiv6077816467photos div div {border:1px solid
#666666;height:62px;overflow:hidden;width:62px;}#yiv6077816467
#yiv6077816467photos div label
{color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv6077816467
#yiv6077816467reco-category {font-size:77%;}#yiv6077816467
#yiv6077816467reco-desc {font-size:77%;}#yiv6077816467 .yiv6077816467replbq
{margin:4px;}#yiv6077816467 #yiv6077816467ygrp-actbar div a:first-child
{margin-right:2px;padding-right:5px;}#yiv6077816467 #yiv6077816467ygrp-mlmsg
{font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv6077816467
#yiv6077816467ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv6077816467
#yiv6077816467ygrp-mlmsg select, #yiv6077816467 input, #yiv6077816467 textarea
{font:99% Arial, Helvetica, clean, sans-serif;}#yiv6077816467
#yiv6077816467ygrp-mlmsg pre, #yiv6077816467 code {font:115%
monospace;}#yiv6077816467 #yiv6077816467ygrp-mlmsg *
{line-height:1.22em;}#yiv6077816467 #yiv6077816467ygrp-mlmsg #yiv6077816467logo
{padding-bottom:10px;}#yiv6077816467 #yiv6077816467ygrp-msg p a
{font-family:Verdana;}#yiv6077816467 #yiv6077816467ygrp-msg
p#yiv6077816467attach-count span {color:#1E66AE;font-weight:700;}#yiv6077816467
#yiv6077816467ygrp-reco #yiv6077816467reco-head
{color:#ff7900;font-weight:700;}#yiv6077816467 #yiv6077816467ygrp-reco
{margin-bottom:20px;padding:0px;}#yiv6077816467 #yiv6077816467ygrp-sponsor
#yiv6077816467ov li a {font-size:130%;text-decoration:none;}#yiv6077816467
#yiv6077816467ygrp-sponsor #yiv6077816467ov li
{font-size:77%;list-style-type:square;padding:6px 0;}#yiv6077816467
#yiv6077816467ygrp-sponsor #yiv6077816467ov ul {margin:0;padding:0 0 0
8px;}#yiv6077816467 #yiv6077816467ygrp-text
{font-family:Georgia;}#yiv6077816467 #yiv6077816467ygrp-text p {margin:0 0 1em
0;}#yiv6077816467 #yiv6077816467ygrp-text tt {font-size:120%;}#yiv6077816467
#yiv6077816467ygrp-vital ul li:last-child {border-right:none
!important;}#yiv6077816467