<div dir="ltr">Ok I found a hack. I created own TMyConnection = class(TSQLite3Connection) so I have access to protected execsql which don't check transaction:<div><br></div><div><div>type</div><div><br></div><div> { TMyConnection }</div>
<div><br></div><div> TMyConnection = class(TSQLite3Connection)</div><div> public<br></div><div> procedure ExecSQLNoTrans(const ASql: String);<br></div><div> end; <br></div></div><div><br></div><div style>implementation</div>
<div style><br></div><div style><div>procedure TMyConnection.ExecSQLNoTrans(const ASql: String);</div><div>begin</div><div> execsql(ASql);</div><div>end; </div><div><br></div><div style>And now I can attach my second database by calling:</div>
<div style><br></div><div style> DBConnection.ExecSQLNoTrans('attach database '+QuotedStr(GetConfigDir+'second.db')+' as mydb2');<br></div><div style><br></div><div style>Each system can be broken ;)<br>
</div><div style><br></div><div style>Regards</div></div></div>