Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate Problems

Status
Not open for further replies.

RabSwinney

Technical User
Aug 21, 2002
25
FI
Hi,
I designed a database at work and they want to go group wide with it, the IT department put the tables onto sql and the database slowed down, then they used a citrix server now the speed is ok but I am getting a lot of duplicate autonumbers? HELP!!!!!
 
How did you implement your autonumbers?

I presume it is no longer an Access database, and they created a SQL Server database with the same design. That would have involved changing Access Counter fields to SQL Server Identity columns. That should have worked OK.

However, if you are using counter fields in an autonumber table, and the counters are incremented by your application, then you need to implement a stored procedure that locks the table while retrieving/incrementing the autonumber counter. Otherwise, two users might get the same autonumber value.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top