I have a SQL Server 2016 database and I need to hide the password field of a table, the idea is that with a SELECT
can only be accessed by a specific user, I have no idea how to do it and I have only found with encryption using INSERT
, but it's not what I need.
CREATE TABLE usuarios (
nombre VARCHAR(50) NOT NULL,
rut VARCHAR(15) NOT NULL,
email VARCHAR(50) NOT NULL,
pass VARCHAR(15)NOT NULL ,
edad INT ,
direccion VARCHAR(50) ,
telefono VARCHAR(12),
comuna VARCHAR(15),
fecha_creacion DATETIME not null default getdate(),
constraint pk_email primary key(email),
constraint uq_rut unique(rut));
I hope you can guide me with documentation or code.