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
14
votes
3 answers

Perfect unique_id for device except IMEI,Android_ID,WLAN Mac and Bluetooth address

Objective: I am looking for a way to find out a unique_id for android device. Background: I will use the Id in login request payload and as my app is license based service app the Id should not change under normal circumstances. Existing…
Durai Amuthan.H
  • 31,670
  • 10
  • 160
  • 241
13
votes
8 answers

uniqid() in javascript/jquery?

what's the equivalent of this function in javascript: http://php.net/manual/en/function.uniqid.php Basically I need to generate a random ID that looks like: a4245f54345 and starts with a alphabetic character (so I can use it as a CSS id)
Alex
  • 66,732
  • 177
  • 439
  • 641
13
votes
8 answers

How to to create unique random integer ID for primary key for table?

I was wondering if anybody knew a good way to create a unique random integer id for a primary key for a table. I'm using MySQL. The value has to be integer.
MindGame
  • 1,211
  • 6
  • 29
  • 50
13
votes
2 answers

Unique computer ID hardware based in Java

I need to generate a unique code from a single PC, my software will be distribute by licence, and locally I need to identify the environment and send this code to the server. I don't want to mantain on the server a sequencial number and each client…
Rigoni
  • 302
  • 1
  • 5
  • 15
13
votes
7 answers

SQL Server: ISNULL on uniqueidentifier

I am trying to compare a column col1 and a variable @myvar in a WHERE clause. Both usually contain GUIDs, but may also have NULL values. I thought I could get around the fact that NULL=NULL evaluates to FALSE by using WHERE ISNULL(col1,…
TVogt
  • 185
  • 1
  • 1
  • 11
13
votes
2 answers

Mobile device uniqueness for iOS and Android

I am seeking a means of securely identifying a mobile device using a unique identifier. Every time I install my app on a specific device, I should get the same unique identifier. This identifier will be uploaded to the server backend and saved for…
Yash Sampat
  • 30,051
  • 12
  • 94
  • 120
13
votes
6 answers

Generating a globally unique identifier in Java

Summary: I'm developing a persistent Java web application, and I need to make sure that all resources I persist have globally unique identifiers to prevent duplicates. The Fine Print: I'm not using an RDBMS, so I don't have any fancy sequence…
Julie
  • 6,221
  • 3
  • 31
  • 37
12
votes
7 answers

Generating ID unique to a particular computer

Possible Duplicate: Reliable way of generating unique hardware ID Am trying to generate an ID that will be unique to a particular computer. The ID will not be generated randomly. It will be calculation based, such that the ID generated for…
Dami Lola
  • 209
  • 1
  • 3
  • 8
12
votes
1 answer

How can I uniquely identify a git repository

I would like to create a tool that checks if I already have a local clone of a remote repository before cloning said repository. To do this, I need a way of testing if B is the same as repository A -- by which I guess i mean they have mergeable…
Spacemoose
  • 3,856
  • 1
  • 27
  • 48
12
votes
4 answers

Host-based Card Emulation with Fixed Card ID

Android 4.4 introduced Host-based Card Emulation (HCE). As you know, all NFC cards come with a fixed card ID (NfcAdapter.EXTRA_ID). My office door access usually detects the NFC card ID for the authorization. After flashing my phone to KitKat, I…
Jason
  • 878
  • 2
  • 9
  • 21
12
votes
3 answers

How to generate unique identifier which should work in all iOS versions?

I want to get the unique identifier which should support all iOS versions..Can any one help me on this issue. As you know that apple is deprecated the UDID method, So there is possibility to generate Unique id using wifi-mac address.But apple is…
Ganesh
  • 524
  • 1
  • 4
  • 16
12
votes
2 answers

Printing unique object identity for debugging purposes in Java

Let's start with code. Future obj = getFuture(); debugLog.println("Handling future: " + System.identityHashCode(obj); and then somewhere else same again, or possibly the same piece of code executed again, possibly in different…
hyde
  • 60,639
  • 21
  • 115
  • 176
11
votes
2 answers

Best way to get PK Guid of inserted row

I've read this question about getting the identity of an inserted row. My question is sort of related. Is there a way to get the guid for an inserted row? The table I am working with has a guid as the primary key (defaulted to newid), and I would…
Doctor Jones
  • 21,196
  • 13
  • 77
  • 99
11
votes
10 answers

Performance issue with generation of random unique numbers

I have a situation where by I need to create tens of thousands of unique numbers. However these numbers must be 9 digits and cannot contain any 0's. My current approach is to generate 9 digits (1-9) and concatenate them together, and if the number…
Eddie
  • 690
  • 10
  • 27
11
votes
4 answers

Java create a unique ID for each instantiated object using instance methods instead of class/static methods

Quite new to this so I hope I have the terminology in the title right. I am trying to figure out how to create an instance method that will do the following: --An ID number is returned. --As each object is created from the class…
SeesSound
  • 503
  • 4
  • 13
  • 24