↧
Re: sp_ww_newid question
↧
With datamode = 0, wwBusiness.CreateNewId generates the next id and checks if it is already used. If the id goes over 2 ^ 32, it wraps around to 0.
With datamode = 2 (SQL server), I see a call is made to sp_ww_newid, but that stored procedure doesn't do anything similar. Am I missing something?
How do you figure. It does the same thing except the rollover. I think if you are worried about rollover on 2 billion you can easily reset the counter at some point before it hits 2 billion and let it fill in the blanks.
+++ Rick ---
Thanks for the response. You are correct especially with the posibility of 64 bit integers. I was more wondering how to modify the procedure so that it automatically creates a record in the id table if there isn' t one already.
Later... Working on it... I'm new to stored procedures. Thanks for the model.