B
Bruno Alexandre
Hi guys,
I have a web application that insert Clients info into the Database, the
Apllication is accesed by several user at the same time, the Client Info is
divide by 3 tables (Client, Product and 1 that combine the Client and
Product and having all info for how the client bought the product)
My question is: HOW can I know for sure that the script is not accesed by 2
diferent users?
WHY:
The script looks like this
INSERT blablabla INTO tblClients
INSERT blablabla INTO tblProduct
INSERT idClient, idProduct, blablabla INTO tblSales
idClient and idProduct is the @@identity from thoose inserts...
the question is How do I know for sure that tblSales have the right idClient
and idProduct and not from other client that other user is inserting in that
percision time?
I use Application.Lock() and Application.UnLock() before and after I execute
the script, but is this work?
thank you
I have a web application that insert Clients info into the Database, the
Apllication is accesed by several user at the same time, the Client Info is
divide by 3 tables (Client, Product and 1 that combine the Client and
Product and having all info for how the client bought the product)
My question is: HOW can I know for sure that the script is not accesed by 2
diferent users?
WHY:
The script looks like this
INSERT blablabla INTO tblClients
INSERT blablabla INTO tblProduct
INSERT idClient, idProduct, blablabla INTO tblSales
idClient and idProduct is the @@identity from thoose inserts...
the question is How do I know for sure that tblSales have the right idClient
and idProduct and not from other client that other user is inserting in that
percision time?
I use Application.Lock() and Application.UnLock() before and after I execute
the script, but is this work?
thank you