PC Review


Reply
Thread Tools Rate Thread

ADO.NET synchronization/concurrency

 
 
jorge ribeiro
Guest
Posts: n/a
 
      25th Jul 2003
Hello

How can I insure that with an web app only one client
access in write mode to a record in a table?!?

My application scenario is the following: I've a web
project that makes all the data retriving from the client
and some client side validation. That web page often
retrives data from an web service that, in each function,
opens a database connection and gets the data, sending it
to the client right after closing the connection...

knowing that ADO.NET uses disconnected recordsets and with
this kind of develloping architecture how can I insure
concurrency to allow only on web client in write mode and
the others in reading mode until the resource is free?!?!

best regards

Jorge Ribeiro
 
Reply With Quote
 
 
 
 
CT
Guest
Posts: n/a
 
      28th Jul 2003
Your database might have a sort of locking mechanism that migth be of help
to you. Have you tried using transactions with an isolation level of
Serializable? This works with SQL Server and in theory with any database
that supports row locking and transactions.

--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"jorge ribeiro" <(E-Mail Removed)> wrote in message
news:085f01c35297$cfbdaf00$(E-Mail Removed)...
> Hello
>
> How can I insure that with an web app only one client
> access in write mode to a record in a table?!?
>
> My application scenario is the following: I've a web
> project that makes all the data retriving from the client
> and some client side validation. That web page often
> retrives data from an web service that, in each function,
> opens a database connection and gets the data, sending it
> to the client right after closing the connection...
>
> knowing that ADO.NET uses disconnected recordsets and with
> this kind of develloping architecture how can I insure
> concurrency to allow only on web client in write mode and
> the others in reading mode until the resource is free?!?!
>
> best regards
>
> Jorge Ribeiro



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Concurrency Help Jonathan Wood Microsoft ADO .NET 6 22nd May 2008 06:33 AM
concurrency in ado.net Archana Microsoft ADO .NET 5 11th Apr 2007 09:31 PM
Concurrency Usarian Skiff Microsoft ADO .NET 2 18th Aug 2005 04:06 PM
concurrency for asp.net angus Microsoft ASP .NET 3 4th Feb 2005 10:13 AM
Concurrency in ADO.NET =?Utf-8?B?b3R0bw==?= Microsoft ADO .NET 3 14th May 2004 08:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:34 AM.