Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sequence GUID
Message
 
 
À
07/05/2009 12:19:53
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 3.0
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01398391
Message ID:
01398400
Vues:
73
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform