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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 problem with random number generation Newid()

Author  Topic 

satyaprakash
Starting Member

1 Post

Posted - 2009-09-19 : 07:01:44
my question is that i have to get the random(this no is unique) no from the table and that no has to display on the screen. but here i am getting the same no several times(duplication). i am using newid() for random no generation.

to avoid duplication can we use any lock here.

please help me

regards
satyaprakash

prakash

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-09-19 : 07:08:46
Post the code you used

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -