C
Clement
Hi,
need urgent help from the expert out there. i was developing a asp.net using
vb code. i had create a web service that will use threading to process the
web request from the client and store the details into the sql database by
SELECT / UPDATE the running number in one of the tables (Number Control
table). my problem here is, i encounter a lot of duplicate running id in my
db and so that produce a lot of duplicate result to the client.
i'm using a single stored procedure (select the column 1, the update col1 +
1) to excute the query and has set a ROWLOCK in SELECT and UPDATE statement.
but, somehow it still give me the duplicate no. in my vb.net code, i am
using EXECUTESCALAR to get the first column result with return from the
storeprocedure.
this webservice is going to serve for a lot of requst (1 second about 8
trx), so i found this problem when i simulate through the Load test.
thanks for help
clement
need urgent help from the expert out there. i was developing a asp.net using
vb code. i had create a web service that will use threading to process the
web request from the client and store the details into the sql database by
SELECT / UPDATE the running number in one of the tables (Number Control
table). my problem here is, i encounter a lot of duplicate running id in my
db and so that produce a lot of duplicate result to the client.
i'm using a single stored procedure (select the column 1, the update col1 +
1) to excute the query and has set a ROWLOCK in SELECT and UPDATE statement.
but, somehow it still give me the duplicate no. in my vb.net code, i am
using EXECUTESCALAR to get the first column result with return from the
storeprocedure.
this webservice is going to serve for a lot of requst (1 second about 8
trx), so i found this problem when i simulate through the Load test.
thanks for help
clement