I have created Brand_Mast Table , I ve want to create Brand_Code as Primary Key, but it is computed field
How can i set Brand_Code as Primary Key ?
CREATE TABLE [dbo].[Brand_Mast](
[id] [int] IDENTITY(1,1) NOT NULL,
[Brand_Code] AS ('BR'+right('00000'+CONVERT([varchar](3),[id],(0)),(5))),
[Brand_name] [varchar](75) NOT NULL, )