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
29
votes
2 answers

Why asp.net Identity user id is string?

I want to use System.Guid type as an id for all of my tables in asp.net web api application. But I also use Asp.net Identity, which using a string-type id (to store guids as well). So I wonder why is it using string id instead of System.Guid by…
29
votes
6 answers

Turn off IDENTITY_INSERT for Dataset insert

I am using a dataset to insert data being converted from an older database. The requirement is to maintain the current Order_ID numbers. I've tried using: SET IDENTITY_INSERT orders ON; This works when I'm in SqlServer Management Studio, I am able…
Nathan Koop
  • 24,803
  • 25
  • 90
  • 125
28
votes
5 answers

Is there really any way to uniquely identify any computer at all

I know there are a number of similar questions in stackoverflow such as the followings: What's a good way to uniquely identify a computer? What is a good unique PC identifier? Unique computer id C# WIN32_Processor::Is ProcessorId Unique for all…
Sajib Mahmood
  • 3,382
  • 3
  • 37
  • 50
28
votes
15 answers

Getting a unique id from a unix-like system

I want to get from any Unix-like system (if this is possible) a unique id that will be persistent every time my application runs in the same machine. If it is possible, I want to get the same id from Linux or FreeBSD or Solaris, etc... I don't want…
Blue
  • 313
  • 1
  • 3
  • 5
27
votes
4 answers

Autoincrement uniqueidentifier

Basically I want to use uniqueidentifier in similar way as identity. I don't want to insert values into it, It should just insert values automatically, different value for each row. I'm not able to set autoincrement on columns of type…
Rasto
  • 17,204
  • 47
  • 154
  • 245
27
votes
11 answers

How to Generate Unique ID in Java (Integer)?

How to generate unique ID that is integer in java that not guess next number?
Sajad Bahmani
  • 17,325
  • 27
  • 86
  • 108
26
votes
5 answers

Using the new Android Advertiser id inside an SDK

It makes a lot of sense that Android ad SDKs will use Android's the new advertiser id. It seems that you can only get the id by using the google services sdk, as mentioned here: http://developer.android.com/google/play-services/id.html. Using the…
dors
  • 5,802
  • 8
  • 45
  • 71
25
votes
4 answers

Conversion from 'uniqueidentifier' to 'int' is not supported on the connected database server

I'm about to migrate my database from using old membership to the one included in mvc4, which uses int instead of guid. When changing the type I get following error: Conversion from int to uniqueidentifier is not supported on the connected database…
I'm busy coding
  • 1,648
  • 4
  • 13
  • 13
24
votes
3 answers

Is it possible to access NFC API in HTML5 applications?

I have a requirement to include NFC Card reader to read associate ID to authenticate the user for a web app displayed in a touch screen. Is it possible to use SCM NFC reader module for a web-based app. Is there any plugin that can we included in the…
23
votes
9 answers

How to generate a unique identifier?

I need to generate some int value that would never repeat (at least theoretically). I know there is arc4random() fnc but I'm not sure how to use it with some current date or smth :(
Centurion
  • 14,106
  • 31
  • 105
  • 197
23
votes
2 answers

iOS7 - Device unique identifier

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 same value every time. NSString *strUniqueIdentifier = [[UIDevice currentDevice]…
furqan kamani
  • 721
  • 2
  • 7
  • 16
22
votes
2 answers

How to obtain the android_id of a device?

Possible Duplicate: Is there a unique Android device ID? In the licensing documentation the android developers mention an easy way to more or less securely identify an android device. They are using android.Settings.Secure.ANDROID_ID. They say…
Janusz
  • 187,060
  • 113
  • 301
  • 369
22
votes
7 answers

How to generate short unique names for uploaded files in nodejs

I need to name uploaded files by short unique identifier like nYrnfYEv a4vhAoFG hwX6aOr7. How could I ensure uniqueness of files?
Erik
  • 14,060
  • 49
  • 132
  • 218
22
votes
3 answers

SQL Server unique-identifier equivalent in C#

What datatype should I use in C# to work with the SQL Server uniqueidentifier. Do I need any conversions etc ?
Asad
  • 21,468
  • 17
  • 69
  • 94
22
votes
2 answers

PHP session IDs -- how are they generated?

When I call session_start() or session_regenerate_id(), PHP generates what appears to be a random string for the session ID. What I want to know is, is it just a random sequence of characters, or is it like the uniqid() function? Because if it's…
M Miller
  • 5,364
  • 9
  • 43
  • 65