Quantcast
Viewing all articles
Browse latest Browse all 15744

Sqlite error: Safety level may not be changed inside a transaction

I use vbRichClient5.dll for SQLite.
I have a number of insert records in a transactional loop, and the transaction begins like this:
Code:

  Insert_Sql = "insert  into  T1 ( A, B, C, D, E ) values (?, ?, ?, ?, ?) "
 
  Set Cmd = Cnn.CreateCommand(Insert_Sql)
  Cnn.Synchronous = False
  Cnn.BeginTrans
  ......

On this line:
Code:

  Cnn.Synchronous = False
it gives me the following error:
Quote:

Cannot compile SQL-Statement: Safety level may not be changed inside a transaction
I really don't understand why this happens.
I have done a lot of queries like that before and this kind of error never happened in the past.
But, today on this query it happens a lot.

Please help.
Thanks.

Viewing all articles
Browse latest Browse all 15744

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>