Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Sir/Madam


I Have A application on VB.Net with sql server . And i have a form Registration . And i am generate code using store procedure

CSS
My table

  CODE (Primary Key)            Name           Address
        1                       Nawaz              new delhi
        2                       niyaz              dubai
I am generating code using store procedure ..

Now my problem is... i have installed that application 10 computers in a network and all have connected through one single database in a network . when users are click on save button then i want to save that record on a queue in store procedure and then run one by one.
Posted
Updated 3-Oct-13 2:09am
v3
Comments
coded007 3-Oct-13 8:08am    
can you please post stored procedure or check if it has (Nolock) conditions
Mohammad Nawaz 3-Oct-13 8:38am    
CREATE TABLE STUDENT (ID INT PRIMARY KEY,NAME VARCHAR(20))
CREATE PROCEDURE REG
AS BEGIN
INSERT INTO STUDENT (1,'NAWAZ')
END
Mohammad Nawaz 3-Oct-13 8:39am    
i just want to wait the another process in store procedure

1 solution

Hi,

Better you can use Identity Property in your table....
Else you can use One System parameter table and store the ID value and when ever you need the value then fetch it and update with next value.

IDENTITY Property in SQL Server[^]
IDENTITY (Property)[^]

Regards,
Venkatesh Prabu Gopal
 
Share this answer
 
Comments
Mohammad Nawaz 3-Oct-13 8:35am    
I HAVE A PRIMARY KEY
Mohammad Nawaz 3-Oct-13 8:36am    
I WANT TO QUEUE THE PROCEDURES
gvprabu 3-Oct-13 8:37am    
Then better use Table lock for system parameter table and update with next value
Mohammad Nawaz 3-Oct-13 8:48am    
can u give me some examples or links
gvprabu 3-Oct-13 9:03am    
check it in code project also...
http://www.codeproject.com/Articles/342248/Locks-and-Duration-of-Transactions-in-MS-SQL-Serve

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900