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 2008 Forums
 Other SQL Server 2008 Topics
 newsequentilid() function issue

Author  Topic 

ancheril
Starting Member

2 Posts

Posted - 2009-07-16 : 06:35:43
I am facing some issue with sequential GUIDs. I could not find a solution for that.
newSequentailid() function I used for a table as default value for the primary key.
I worked fine for two weeks till June 10th. There are about 1 lakh records inserted per day to the table. The sequiantail guid inserted on June 10th is the largest ID now in the table. All the ids inserted after that are smaller than that.

This topic is under discussion in http://forum.ancheril.net

Shobin Mathew
www.ancheril.net
BLog: http://blog.ancheril.net
Forum: http://forum.ancheril.net

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-07-16 : 06:43:52
Largest, according to what?
The GUID is a binary value, which is interpreted and displayed as a string.
Do a conversion back to binary and see if the records are stored in the correct order.



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

ancheril
Starting Member

2 Posts

Posted - 2009-07-17 : 00:49:29
NEWSEQUENTIALID() Function Creates a GUID that is greater than any GUID previously generated by this function
It should work just the same way as identity column
Each GUID generated should be greater than the previously generated
http://forum.ancheril.net/viewtopic.php?f=9&t=62&p=185#p185

Shobin Mathew
Web: www.ancheril.net
BLog: http://blog.ancheril.net
Forum: http://forum.ancheril.net
Go to Top of Page
   

- Advertisement -