Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB, C#, and VFP data handling examples
Message
From
25/04/2007 10:59:03
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
 
 
To
24/04/2007 23:35:44
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01215120
Message ID:
01219782
Views:
17
Perry,

Thanks for the info. SQL Server 2000 added the ability to do row-level locks, but this article still recommends semaphores:

http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1063673,00.html

>Here's a VFP doc that describes issues when upsizing to SQL Server. Notice the section on locking:
>
>http://msdn2.microsoft.com/en-us/library/tw8e1zh4(VS.80).aspx
>
>Locking strategies vary from system to system. I think there's a lot more evaluation that goes on in these types of systems to determine locking strategy. Many things come into play.
>
>For example, you wouldn't want to rely on SQL Server locks if the data would get accessed thru the web because locks require a connection, and you want your web apps not to be connected all the time.
>
>
>>Wow. You're the third person (I've noticed) that has said this. Does that mean a pessimistic lock strategy is often used in the SQL Server world at large? I know this is an individual decision, but I guess I thought that the shift to optimistic locking in VFP was in part fueled by database servers. I didn't think pessimistic locks would be acceptable in that environment.
>>
>>Pardon my ignorance, but why semaphores? Can you do record locks with SQL Server?
>>
>>>By larger scale, I mean a system where the chance of collision is greater then it is now. Currently the staff using the system is between 5-10 people. And they split up the work in a way that minimizes the chance of update collisions (not purposefully).
>>>
>>>If the company so desires, they might enhance the system to work in more types of offices. The natural extension of the current system would be into offices where rather then 1 large project, there would be multiple smaller ones. So the division of labor wouldn't be so distinct and there would be multiple people doing things like vendor record updates.
>>>
>>>To institute a semaphore, it would be similar to what Kevin G. described here earlier. A column in a table somewhere that gets set when a user selects a record for update. And that column is queried whenever any user selects a record for update.
>>>
>>>>If this was a larger scale multiuser, we would have instituted semaphore locking during updates.
>>>>
>>>>Can you tell us why you'd introduce semaphores with larger scale? When you say "during" updates do you mean at the split second of update, or throughout the period while the user is making their edit?
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Previous
Reply
Map
View

Click here to load this message in the networking platform