Showing posts with label Users get blocked when access same table while getting Unique IDs. Show all posts
Showing posts with label Users get blocked when access same table while getting Unique IDs. Show all posts

Friday, March 27, 2009

Users get blocked when access same table while getting Unique IDs

--Table which will have the Unique IDs
CREATE TABLE dbo.CounterTable
(
Counter int IDENTITY(1,1) NOT NULL
)
GO
--Procedure which Inserts unique IDs in table and returns the New ID