TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Harshal Thakre
1.5k
236
77.4k
How to solve same id problem?
Aug 25 2014 3:25 AM
IF at the same time 2 user call this procedure snippet....
@idnumber bigint,
@name varchar(50)
declare @id bigint=(select MAX(IdNumber)+1 from PersonalDetail)
insert into taba values(@id,@name)
------------------------------------
Note:Id Number is pk.
---------------------------
plz tell me what will happen....
1.Either first user record insert or second.
2.Both will show error.
3.this is not good way to handle such type of problem.
4.No Need to worry both record will insert with diffrent id.
5.Anything else.
------------------
Plz tell me how to solve...
------------
Reply
Answers (
2
)
IN clause value list-order by
SQl to Backup all user databases with timestamp