Hi,
How to restric the duplicate value on nvarchar column in sql Express 2008
Below is my table
Hide Copy Code
CREATE TABLE [dbo].[User](
[User_No] [int] IDENTITY(1,1) NOT NULL,
[User_Name] [nvarchar](max) NOT NULL
) ON [PRIMARY]
GO
I want to restric if the User_Name is duplicate.

Midhun TpRank #388 · 6.5K reputationPosted Aug 20, 2016, 2:27 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 20, 2016, 2:38 AM EDT
Basit KhanRank #4,768 · 326 reputationPosted Aug 20, 2016, 2:40 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 20, 2016, 3:02 AM EDT