Questions tagged [uniqueidentifier]

With reference to a given (possibly implicit) set of objects, a unique identifier is any identifier which is guaranteed to be unique among all identifiers used for those objects and for a specific purpose.

Overview

When dealing with a set of objects, a unique identifier is any identifier that is designed to be unique among all identifiers used for those objects within a given range, scope or purpose.

1591 questions
45
votes
9 answers

NSFileManager unique file names

I need a quick and easy way to store files with unique file names on iOS. I need to prefix the file with a string, and then append the generated unique identifier to the end. I was hoping NSFileManager had some convenient method to do this, but I…
spentak
  • 4,627
  • 15
  • 62
  • 90
45
votes
14 answers

App rejected, but I don't use UDID

Today we received a feedback about our submission and we do not understand the reported problem: "Apps are not permitted to access the UDID and must not use the uniqueIdentifier method of UIDevice. Please update your apps and servers to associate…
Tiago
  • 451
  • 1
  • 4
  • 4
44
votes
1 answer

Serials on NFC Tags - truly unique? cloneable?

So are NFC tags really UNIQUE from each other, at least in their SERIAL NUMBER? And can we rely on the fact that no 2 NFC tags can have the same serial number? I'm highly skeptical about this as there are (and will be more) NFC tags out there and I…
BrownChiLD
  • 3,545
  • 9
  • 43
  • 61
38
votes
4 answers

Best way to get machine id on Linux?

What is the best-practiced way to get an unique machine ID in GNU/Linux for i386 architecture? Are there any good ways except the mac address?
user663896
37
votes
5 answers

Programmatic Views how to set unique id's?

I am creating in my app bunch of programmatic Views. As it appeared to be they all by default have the same id=-1. In order to work with them I need to generate unique id's. I have tried several approaches - random number generation and based on…
Barmaley
  • 16,638
  • 18
  • 73
  • 146
37
votes
6 answers

Algorithm for generating a unique ID in C++?

What can be the best algorithm to generate a unique id in C++? The length ID should be a 32 bit unsigned integer.
Ajay
  • 9,947
  • 8
  • 32
  • 34
36
votes
4 answers

Reliable way of generating unique hardware ID

Question: I have to come up with unique ID for each networked client, such that: it (ID) should persist once client software is installed on target computer, and should continue to persist if software is re-installed on same computer and same OS…
mr.b
  • 4,932
  • 11
  • 38
  • 55
34
votes
6 answers

INT vs Unique-Identifier for ID field in database

I am creating a new database for a web site using SQL Server 2005 (possibly SQL Server 2008 in the near future). As an application developer, I've seen many databases that use an integer (or bigint, etc.) for an ID field of a table that will be…
mkchandler
  • 4,688
  • 3
  • 23
  • 25
33
votes
4 answers

Convert NULL to empty string - Conversion failed when converting from a character string to uniqueidentifier

Using SQL Server 2005 how do I get the below statement or rather the output as i want it to be. SELECT Id 'PatientId', ISNULL(ParentId,'') 'ParentId' FROM Patients ParenId is a uniqueidentifier that allows NULL, but seems that query…
Deeptechtons
  • 10,945
  • 27
  • 96
  • 178
33
votes
6 answers

is it possible to get a unique identification number from a mobile device?

I am currently working on mobile device web applications, and I was wondering if there is some sort of unique id number per device that could be detected via the browser. The purpose would be to store this number in order to recognize people who…
Pierre
  • 4,976
  • 12
  • 54
  • 76
33
votes
3 answers

How to generate and manually insert a uniqueidentifier in SQL Server?

I'm trying to manually create a new user in my table but am finding it impossible to generate a "UniqueIdentifier" type without the code throwing an exception... Here is my example: DECLARE @id uniqueidentifier SET @id = NEWID() INSERT INTO…
Mehdi Bugnard
  • 3,889
  • 4
  • 45
  • 86
31
votes
3 answers

Unique Identifier of a Mac?

On an iPhone I can use [[UIDevice currentDevice] uniqueIdentifier]; to get a string which identifies this device. Is there anything equal in OSX ? I didn't find anything. I just want to identify the Mac which started the application. Can you help…
Sandro Meier
  • 3,071
  • 2
  • 32
  • 47
31
votes
7 answers

Always get a unique device id in iOS 7

Our iOS application is for specific users. So, we used device unique identifier for user identification. This approach works fine till iOS 6, because we are getting the same value every time. NSString *strUniqueIdentifier = [[UIDevice currentDevice]…
jaydev
  • 1,629
  • 5
  • 17
  • 31
30
votes
4 answers

How to obtain (almost) unique system identifier in a cross platform way?

I'm looking for a way to get a number which will almost surely change when running the code on different machines and almost surely stay the same between two runs on the same machine. If I were doing this as a shell script in Linux, I would use…
cube
  • 3,867
  • 7
  • 32
  • 52
29
votes
5 answers

SQL Server: Search all tables for a particular GUID

i came across the need to cleanse some data, and i need to find some particular guids (i.e. uniqueidentifiers) in SQL Server°. i've come up with a stored procedure that does a SELECT from every uniqueidentifier column in every table in the current…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219