Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 what sort of lock on data is needed

Author  Topic 

lmorr
Starting Member

1 Post

Posted - 2011-08-28 : 09:57:32
Hi

I have user define function that calculates what index is missing on a table,

The function is within an insert statement.

When 2 usrers are calling the insert statemant at the same time they get the same index from the function

How can i prevent it?



Thx shoko



GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2011-08-28 : 12:32:34
Huh?

--
Gail Shaw
SQL Server MVP
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-29 : 00:34:40
how do you determine index based on insert? by index do you mean table index or just index for row ie rownumber?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -