How to Set Column as Hexa Decimal
Hi How to set primary key column as hexadecimal while designing the table in sql server.thanks
thyaga
CREATE TABLE yourtable(
ComputedHexColumn AS CONVERT(VARBINARY(8), ID),
col1 varchar(20) not null,
col2 varchar(20) not null,
CONSTRAINT pk_yourtablePRIMARY KEY CLUSTERED(ComputedHexColumn )
)