ADO.NET, SQL Server, and concurrency issues

L

Leszek

Hello,

I have a question regarding concurency issues using ADO.NET and SQL Server.
Does ADO.NET provide any specific support to resolve concurrency conficts in
a multiuser environment? How should I deal with the situation when we have
multiple ASP.NET clients trying to modify the same record?

Thanks for any suggestions,
Leszek Taratuta
 
W

William Ryan

If you are using a CommandBuilder, you have limited ability to specify
concurrency type. You can turn off OPtimistic COncurrency in the
DataAdapter configuration wizard depending on how you want to handle things.
Another approach is to let it throw a concurrency exception and then trap
that exception. You can prompt the user from there asking hwo they want to
handle the exception and just have some branch logic. I can't do the entire
subject in this post, but if you check this link at MSDN, it tells you your
options as well as how to possibly handle them.
http://msdn.microsoft.com/library/d...us/vbcon/html/vboridataupdatesconcurrency.asp

HTH,

Bill
 
L

Leszek

Great!
Thanks for information.

Leszek Taratuta

William Ryan said:
If you are using a CommandBuilder, you have limited ability to specify
concurrency type. You can turn off OPtimistic COncurrency in the
DataAdapter configuration wizard depending on how you want to handle things.
Another approach is to let it throw a concurrency exception and then trap
that exception. You can prompt the user from there asking hwo they want to
handle the exception and just have some branch logic. I can't do the entire
subject in this post, but if you check this link at MSDN, it tells you your
options as well as how to possibly handle them.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vboridataupdatesconcurrency.asp

HTH,

Bill
conficts
 

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