Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to skip a record If Another user is in use
Message
From
16/06/2009 08:57:06
Arjun Bagojikop
Dynamic Super Software
Sangli, India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
How to skip a record If Another user is in use
Miscellaneous
Thread ID:
01406303
Message ID:
01406303
Views:
93
Hi all
i am trying to skip a record from my list if another user is in use in sql server 2005
Example

in my table 2 records

Id Name
1 Sac First user using this
2 Mac

and now second user also want to edit. at that time i want to skip 1st record from edit list. so please tell me how it is possible.

Just i try to use rowlock and readpast in sql statement but it could not work
SQLEXEC(_Screen.sqlconn,'begin tran')
SQLEXEC(_screen.sqlconn,'select * from mst015 with(updlock) where id=1')
brow
SQLEXEC(_screen.sqlconn,'select * from mst015 with(readpast)')
brow     && here i want to skip id=1
SQLEXEC(_Screen.sqlconn,'commit tran')
Next
Reply
Map
View

Click here to load this message in the networking platform