Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to skip a record If Another user is in use
Message
 
 
To
16/06/2009 08:57:06
Arjun Bagojikop
Dynamic Super Software
Sangli, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01406303
Message ID:
01406318
Views:
53
>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')
>
Not sure if this could help, but check message #1361095
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform