Qamar Zaman
Programmer
Hello Genius Programmers,
i am converting VFP9 application DBF to SQL Server, in VFP i lock the record for other users and update the record. Through flowing code.
SELECT max_no
RL=.F.
DO WHILE.NOT.RL
RL=RLOCK()
ENDDO
qam=VAL(max_inv)+1
qam2= replicate('0',7-LEN(transform(qam)))+transform(qam)
isu_inv=TRANSFORM(qam2)
replace max_inv WITH isu_inv
UNLOCK
Please suggest me code for SQL Server. Mean lock the record and update table.
Thanks in advance.
i am converting VFP9 application DBF to SQL Server, in VFP i lock the record for other users and update the record. Through flowing code.
SELECT max_no
RL=.F.
DO WHILE.NOT.RL
RL=RLOCK()
ENDDO
qam=VAL(max_inv)+1
qam2= replicate('0',7-LEN(transform(qam)))+transform(qam)
isu_inv=TRANSFORM(qam2)
replace max_inv WITH isu_inv
UNLOCK
Please suggest me code for SQL Server. Mean lock the record and update table.
Thanks in advance.