<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hey Guys<br><br>I have a basic database ($dbh) like this:<br><br>&nbsp;&nbsp;&nbsp; my $dbh = DBI-&gt;connect("dbi:SQLite:dbname=list.db',"","", { RaiseError =&gt; 1, AutoCommit =&gt; 0 });<br><br>I want to do an SQLite attach, which requires no transaction. But DBI automatically does a begin on a do or prepare if no begin was run. I can reconnect to the database withou AutoCommit =&gt; 1, do the attach, disconnect, reconnect with AutoCommit =&gt; 0, but that is a slow process.<br><br>Example of the error:<br>&nbsp;&nbsp;&nbsp; $dbh-&gt;do('ATTACH DATABASE "/path/to/other.db" as other');<br>error = "cannot ATTACH database within transaction(1) at dbdimp.c line 403 ..."<br><br>Does anyone know how I can do a "do" without a begin if AutoCommit is off?<br><br>Ta<br><br>Scott<br>-- <br>http://scott.dd.com.au/<br>scottp@dd.com.au<br><br><br></div></body></html>