guid

Is the GUID generated during installation common for XP and Windows 7 ?

This question is about an installation/uninstallation framework i am writing. For uninstallation i use the following mechanism: msiexec /X {GUID} where GUID is the registrykey that is generated in the uninstall location of the registry hive : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall. For one of the software...

Is it possible that GUIDs are generated with all the same characters in .NET? (e. g.: {11111111-1111-1111-1111-111111111111})

We use GUIDs extensively in our database design; Business Object properties provide Guid.Empty GUIDs for DB null values and null is always saved to the database if the value is Guid.Empty. Apart from Guid.Empty (00000000-0000-0000-0000-000000000000) how likely is it that a GUID will be generated with all the same characters e. g.: 11111...

[C++][Linux]Generating UUIDs in Linux

I am stuck in a strange predicament. I need to generate UUIDs in my Linux program (which I distribute using RPMs). I do not want to add another dependency to my application by requiring the user to install libuuid (seems like libuuid isn't included in most Linux distros, like CentOS). Isn't there a standard Linux system call which gener...

Guid == null should not be allowed by the compiler

Possible Duplicate: C# okay with comparing value types to null The behaviour described below is specific to .net-3.5 only Hello, I just ran across the most astonishing behavior in the C# compiler; I have the following code: Guid g1 = Guid.Empty; bool b1= (g1 == null); Well, Guid is not nullable therefore it can never...

Sequential Guid in Java

Considering the post I've made about the sequential guid performance on Microsoft.NET framework (see http://stackoverflow.com/questions/170346/what-are-the-performance-improvement-of-sequential-guid-over-standard-guid/170363#170363) does somebody have a proper, sure, fast and well working Java implementation of the same algorithm impleme...

Replacing all GUIDs in a file with new GUIDs from the command line

I have a file containing a large number of occurrences of the string Guid="GUID HERE" (where GUID HERE is a unique GUID at each occurrence) and I want to replace every existing GUID with a new unique GUID. This is on a Windows development machine, so I can generate unique GUIDs with uuidgen.exe (which produces a GUID on stdout every tim...

How to get friendly device name from DEV_BROADCAST_DEVICEINTERFACE and Device Instance ID

I've registered a window with RegisterDeviceNotification and can successfully recieve DEV_BROADCAST_DEVICEINTERFACE messages. However, the dbcc_name field in the returned struct is always empty. The struct I have is defined as such: [StructLayout(LayoutKind.Sequential)] public struct DEV_BROADCAST_DEVICEINTERFACE { public int dbcc_s...

The INSERT statement conflicted with the FOREIGN KEY constraint "FK_UserCars_aspnet_Users"

I am trying to insert data to UserCars table using ObjectDataSource Insert Method. the userId(FOREIGN KEY) I am trying to insert is GUID type. corresponding PRIMARY key is UserId(uniqeidentifier) in aspnet_users table which is part of Membrship shema the userId(guid) = JustCreateduser so it means it shoukd be the same vaues. however...

How to encode/decode a CFUUIDRef in Objective-C

I want to have a GUID in my objective-c model to act as a unique id. My problem is how to save the CFUUIDRef with my NSCoder as its not a an Object type. I keep playing around with the following lines to encode/decode but I can't seem to find any good examples of how to save struct types in objective-c (all of my NSObject types are enco...

long vs Guid for the Id (Entity), what are the pros and cons

I am doing a web-application on asp.net mvc and I'm choosing between the long and Guid data type for my entities, but I don't know which one is better. Some say that long is much faster. Guid also might have some advantages. Anybody knows ? ...

List of well known VSS Writer GUIDs

Is there a consolidated list of GUIDs for well known VSS writers available somewhere? At least the Microsoft ones like System State, Exchange, SQL, Sharepoint etc. ...

Show a GUID in 36 letters format

Hi. GUID is big random number show in a HEX basis. I want to show this number in a shorter format, lets say that based on the all letters and numbers. That is a 36 basis. Lets say that: 2f1e4fc0-81fd-11da-9156-00036a0f876a will become as 3jEl9x6eZi. Is there any 'ready' algorithm for this in .Net? it need to be bidirectional. Edit:...

How to update GUID in MS SQL via PHP/ODBC?

I've been tasked with getting two MS SQL based products to synchronize. My predecessor was content to match records based on a combination of name and address, but both systems have a GUID, and only one is actually using it. So my thought was to match up my existing records and copy the GUID from one database to the other. But I can't se...

Whats the difference between a GUID and a UUID?

Possible Duplicate: Is there any difference between a GUID and a UUID? Whats the difference between a GUID and a UUID, and which should I use for true uniqueness? Update: What things do I need for uniqueness too in the algorithm I choose? 1) MAC address of network card 2) 128 bits (isn't 64 bits enough?) 3) What if I have ...

Is there a way to create an auto-incrementing Guid Primary Key in an Oracle database?

I mostly work with sql-server (when I do work with databases) and I am trying to learn pl-sql. Is there any equivalent to sql-server's auto-generated Guid as primary keys in Oracle? ...

SharePoint GUID: uppercase or lowercase?

Hi all: Does it matter that I use lowercase or uppercase letters in GUID for Sharepoint development? I'm not sure if there are certain situations where lowercase letters need to be used instead of uppercase ones. Thanks. ...

Is there a specific performance issue with Entity Framework + GUID PKs?

My company has a basic SOA, using Entity Framework for database access. One of our services must interface with a legacy database which uses uniqueidentifier primary keys in the database. Performance is good during unit and integration testing. However, under load, the affected service starts to produce a backlog of queued requests. Thi...

Encrypt / Decrypt Primary Key instead of using UID?

Although I always check that someone is allowed to access a record, I normally use a UID in query strings as I feel it discourages the temptation to "poke around" that ?id=1, ?id=2 does. I find though that it makes it a bit convoluted to do lookups across multiple tables as you need to store the UID as well instead of just the record id...

Guid.NewGuid().GetHashCode() for DB

Would this be reliable for using as an ID for data storage(SQL Server)? I would use a guid but I prefer a numeric value. ...

What are the project GUIDs in a Visual Studio solution file used for?

I have multiple projects in a single Visual Studio (2008) solution. I just discovered that each of these projects uses a same GUID, so in the solution file it looks like this: Project("{FAE04EC0-F103-D311-BF4B-00C04FCBFE97}") = "Pro1", "Pro1\Pro1.csproj", "{...}" Project("{FAE04EC0-F103-D311-BF4B-00C04FCBFE97}") = "Pro2", "Pro2\Pro2.csp...