| Author: Kapil Deo Malhotra 01 Sep 2008 | Member Level: Gold | Rating: Points: 3 |
GUID -Globally Unique Identifier. As its name suggest it is unique identifier or number which can distinguish from one component to another one.
Every component or application and its depends has the version number so the application or product can be identified based on the version number.
Version number does not have any link with GUID.
|
| Author: Appukuttan 01 Sep 2008 | Member Level: Diamond | Rating: Points: -20 |
Hi..
A Globally Unique Identifier (GUID) is a 128-bit integer that you can use across all computers and networks wherever a unique identifier is required.
ossessing a unique identifier makes it easy to store and retrieve information. This is especially useful when working with a database because a GUID makes an excellent primary key.
Also, SQL Server integrates well with GUID usage. The SQL Server data type uniqueidentifier stores a GUID value. You can either generate this value within SQL Server—using the NEWID() function—or you can generate the GUID outside of SQL Server and insert it manually.
The latter approach is a straightforward process in .NET. The base System class in the .NET Framework includes the GUID value type. In addition, this value type includes methods to work with GUID values. In particular, the NewGUID method allows you to easily generate a new GUID.
The following C# command-line application shows how it's used:
using System;
namespace DisplayGUID {
class GuidExample {
static void Main(string[] args) { GenerateGUID();
}
static void GenerateGUID() { Console.WriteLine("GUID: " + System.Guid.NewGuid().ToString());
} } }
Here's the output of the program (though the GUID will vary from system to system):
GUID: 9245fe4a-d402-451c-b9ed-9c1a04247482
|