Questions tagged [identity]

An inherent property of an entity that distinguishes that entity from all others. Frequently used to refer to user identity and authentication.

Identity typically refers to user identity in authentication scenarios.

2969 questions
39
votes
8 answers

What is the practical use of the identity function in R?

Base R defines an identity function, a trivial identity function returning its argument (quoting from ?identity). It is defined as : identity <- function (x){x} Why would such a trivial function ever be useful? Why would it be included in base R?
Andrie
  • 176,377
  • 47
  • 447
  • 496
36
votes
6 answers

How do I add the identity property to an existing column in SQL Server

In SQL Server (in my case, 2005) how can I add the identity property to an existing table column using T-SQL? Something like: alter table tblFoo alter column bar identity(1,1)
Tristan Havelick
  • 67,400
  • 20
  • 54
  • 64
36
votes
3 answers

Asp.net Identity password hashing

The new ASP.net Identity project has brought some useful code and interfaces for website security. To implement a custom system using the interfaces (instead of using the standard Entity Framework implementation included in the MVC 5 template) an…
Edward Wilson
  • 456
  • 1
  • 5
  • 8
36
votes
4 answers

newid() vs newsequentialid() What are the differences/pros and cons?

In a database where all of your primary keys are GUIDs, what are the differences/implications and/or pros and cons using newid() versus newsequentialid() as the "default value or binding". The only difference that I know of is that newid() creates a…
7wp
  • 12,505
  • 20
  • 77
  • 103
35
votes
1 answer

What is the Signing Credential in IdentityServer4?

We are in the process of implementing Identity Server 4 with our .NET Core web app. I went trough the Identity Server documentation. When configuring the Identity server (using DI) there is the line: .AddTemporarySigningCredential I'm trying to…
32
votes
2 answers

Equivalent of MSSQL IDENTITY Column in MySQL

What is the equivalent of MSSQL IDENTITY Columns in MySQL? How would I create this table in MySQL? CREATE TABLE Lookups.Gender ( GenderID INT IDENTITY(1,1) NOT NULL, GenderName VARCHAR(32) NOT NULL );
Allan Chua
  • 9,305
  • 9
  • 41
  • 61
31
votes
11 answers

SQL Server Reset Identity Increment for all tables

Basically I need to reset Identity Increment for all tables to its original. Here I tried some code, but it fails. http://pastebin.com/KSyvtK5b Actual code from link: USE World00_Character GO -- Create a cursor to loop through the System Ojects and…
DanSpd
  • 313
  • 1
  • 3
  • 4
30
votes
2 answers

Why does id({}) == id({}) and id([]) == id([]) in CPython?

Why does CPython (no clue about other Python implementations) have the following behavior? tuple1 = () tuple2 = () dict1 = {} dict2 = {} list1 =…
spenthil
  • 3,373
  • 29
  • 17
29
votes
3 answers

How can I retrieve a Windows Computer's SID using WMI?

I'm not looking for User SIDs. I'm looking for the computer SID, which active directory would use to uniquely identify the computer. I also don't want to query the active directory server, i want to query the computer itself.
Mark
  • 5,223
  • 11
  • 51
  • 81
29
votes
2 answers

ExpireTimeSpan ignored after regenerateIdentity / validateInterval duration in MVC Identity (2.0.1)

Been scratching my head all day on this one. I'm trying to set up "very long" login sessions in MVC Identity 2.0.1. (30 days). I use the following cookie startup: app.UseCookieAuthentication(new CookieAuthenticationOptions { …
GregTheDev
  • 623
  • 1
  • 7
  • 9
29
votes
2 answers

How do I implement password reset with ASP.NET Identity for ASP.NET MVC 5.0?

Microsoft is coming up with a new Membership system called ASP.NET Identity (also the default in ASP.NET MVC 5). I found the sample project, but this is not implemented a password reset. On password reset topic just found this Article: Implementing…
Gábor Plesz
  • 1,203
  • 1
  • 17
  • 28
27
votes
3 answers

In SQL Server, should I create an index for an identity column, or is it created automatically?

I believe when I create an identity column it gets indexed automatically, but I'm not 100% sure. Should I create an index for an identity column, or is it created automatically?
willvv
  • 8,439
  • 16
  • 66
  • 101
27
votes
5 answers

Trouble understanding Object State, Behavior, and Identity?

I have been instructed by my professor to introduce myself on a page as if I were an object, and that I must address three things: 1) Object State, 2) Behavior, and 3) Identity. However, I am still really confused as to how I would go about doing…
TheNewGuy
  • 411
  • 1
  • 7
  • 13
26
votes
2 answers

Does serialization preserve object identity?

I am using the Java Serializable interface and the ObjectOutputStream to serialize objects (until now, this method has been sufficient for my purposes). My API relies on object identity for some operations and I’m wondering if it will be preserved…
Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
25
votes
4 answers

Can't perform Create, Update or Delete operations on Table because it has no primary key

I've been trying to insert row in the table having an identity column RequestID (which is primary key as well) HelpdeskLog logEntry = new HelpdeskLog { RequestBody = message.Body }; if (attachment != null) logEntry.Attachments =…
igor