Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sequence GUID
Message
 
 
À
08/05/2009 12:36:50
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:
01399634
Vues:
85
>>Hi,
>>Thank you.
>>
>>I tried out the code (code posted here and also from Jimmy one), and found that it is not generated in sequence as well. The way I test is
>>
>>1. Defined an array contains 5 elements.
>>2. Call the COMBGuid 5 times and assigned the return value to each element accordingly 0..1..2..3..4..5
>>3. Copy the guid value of each array elements to guid column of each record in table.
>>4. ORDER the guid column
>>
>>Result, the sequence of record doesn't same as the order of array element.
>>
>>Is it the right way to test?
>>
>>Please advice. Thank you
>
>Hi,
>The link Cetin provided in a previous post has C# code to create the COMBGuid - looks like it needs to be more complex than my sample ! Even after the more complex way of getting the Date derived byte[] I see that both arrays are reversed.
>
>Did Cetin's code work for you?
>Best,
>Viv

Does SQL Server CE support it and would it be a better way to go with the regular Guid?
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