Re: What to search for



"Göran Andersson"

A GUID is excellent if you have distributed data, i.e. you need to create unique keys without having all the data available at the moment. In your case your data is limited to your xml file, so you always have all the data. Therefore you can always create a unique value without problem, and the usefulness of a GUID is very small.

Why is an incremental identifier better, it gives me always troubles which a GUID does not.

I only use an incremental value for a key as I want the key have an incremented number, but that is as well not the case in this situation.

Cor


.



Relevant Pages

  • Re: What to search for
    ... The unique keys are "negative" as expected. ... After this step I am writing the dataset to an XML file, but it still has "negatives" there. ... and using primary keys on an xml file will always be like this - until you take it and write the contents into a real server filesystem? ... It's not the primary key setting that makes the values change, it's that the field is specified as identity in the database. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: What to search for
    ... The unique keys are "negative" as expected. ... After this step I am writing the dataset to an XML file, but it still has "negatives" there. ... It's not the primary key setting that makes the values change, it's that the field is specified as identity in the database. ... When you save the data as XML, there is no identity field that can create new unique values. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: What to search for
    ... The unique keys are "negative" as expected. ... After this step I am writing the dataset to an XML file, but it still has "negatives" there. ... It's not the primary key setting that makes the values change, it's that the field is specified as identity in the database. ... When you save the data as XML, there is no identity field that can create new unique values. ...
    (microsoft.public.dotnet.languages.vb)
  • What to search for
    ... The unique keys are "negative" as expected. ... After this step I am writing the dataset to an XML file, but it still has "negatives" there. ... How to I get it to write to the xml file with "Positive Keys". ... and using primary keys on an xml file will always be like this - until you take it and write the contents into a real server filesystem? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: What to search for
    ... create unique keys without having all the data available at the moment. ... Therefore you can always create a unique value without problem, and the usefulness of a GUID is very small. ... I use identity fields all the time, and don't have any troubles with them. ... In this case the advantage of the incremental identifier is that it's already there, ...
    (microsoft.public.dotnet.languages.vb)