Ok.
But I have opened Access database using OleDbConnection with transaction
level set to ReadCommited. May be the transactions are not named in the same
way as they are in MS SQL but they still exists, don't they.
Let's rephrase the questions:
What transaction levels are supported by MS Access and where I can find
additional information?
In general I what to run multiple statements and make sure that no one will
change or add new rows between my statements. Since Access does not support
multiple statements in one query I decided that I need isolated
(serializable) transaction. How should I implement this?
Thanks,
Martin Kulov
Sorry for the delay in responding to you, I was out of commission due
to Hurricane Frances. I'd recommend using the syntax shown in the Help
article, "Performing a Transaction Using ADO.NET". If you use saved
Access queries for the multiple operations inside of the transaction,
you can set the querydef properties to pessimistic locking for each
saved query, and execute the queries instead of sending direct SQL
statements. However, be warned -- this could cause significant
bottlenecks in performance, depending on how much data is being locked
by those queries and how well or poorly your database is designed, and
how many concurrent users you have.
--Mary
>Ok.
>
[quoted text clipped - 36 lines]
>> >
>> >[1] "Neither the isolation level nor a strengthening of it is supported."
Martin Kulov - 11 Sep 2004 13:35 GMT
Hi Mary,
Thanks for your response!
I read the article that you sent me and it explains exactly what I am doing
right now.
Still I do not know what isolation level I should specify in
BeginTransaction method that will prevent inserting new rows when another
transaction is currently reading and inserting in the table.
Do you have any information?
Thanks,
Martin Kulov
> Sorry for the delay in responding to you, I was out of commission due
> to Hurricane Frances. I'd recommend using the syntax shown in the Help
[quoted text clipped - 49 lines]
> >> >
> >> >[1] "Neither the isolation level nor a strengthening of it is supported."