Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sequence GUID
Message
 
 
To
07/05/2009 12:19:53
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 3.0
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01398391
Message ID:
01398400
Views:
70
>Hi,
>I am looking for SQL Server 2005 NewSequentialID() equivalent function in C#. I want it because I am using GUID as PK. I am planning to set my PK as clustered index, however, Guid.NewGuid() is generated randomly which is not good for clustered index, Therefore, would like to know if any C# function can do the same thing with NewSequentialID().
>
>Thank you

Well, thanks, I didn't know about this function.

I found http://stackoverflow.com/questions/211498/is-there-a-net-equalent-to-sql-servers-newsequentialid

and
http://coolthingoftheday.blogspot.com/2006/12/create-your-own-sequential-guids-like.html
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform