oledb + access refresh problem

V

Vipper

Hi,

I'm using ACCESS + oledb with ado.net 2 and I'm having this behaviour when I
execute the next sequence:

1. INSERT INTO customer ...
2. SELECT * FROM customer (I execute it inmediately)

But the change of step 1 doesn't refresh in step 2, . However if I execute
step 2 again after 1 or 2 seconds, the change refresh correctly.

Any ideas?
 
M

Mary Chipman [MSFT]

My guess is the SELECT, which only requires a shared lock, was
executed before the INSERT, which requires an exclusive lock. You can
get a better idea of what might have happened by sticking a Profiler
trace on the call.

--Mary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top