SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Insert record
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

john.lam
Starting Member

12 Posts

Posted - 12/23/2009 :  07:54:57  Show Profile  Reply with Quote
Hi all,

I have a table (table A) with an id field where the value in this field will be retrieved from an id field in other table (table B). If I insert a new record in table A, the id field in table B will increase by 1. My problem is, I want a way to make sure no same value will be retrieved by table A, especially if there are more than 1 process are running at the same time. How can I achieve this requirement?

Thanks.

John Lam
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000