All,
The script below works fine on SQLServer 2019:
CREATE TABLE DefaultMask
(
ID INT IDENTITY (1,1) PRIMARY KEY NOT NULL
,Name VARCHAR(255) NULL
,BirthDate DATE NOT NULL
,Social_Security BIGINT NOT NULL
);
GO
But the below script below gives an error. I need to setup an external table definition with data masking.
Msg 103010, Level 16, State 1, Line 1
Parse error at line: 4, column: 20: Incorrect syntax near 'MASKED'.
CREATE EXTERNAL TABLE DefaultMask
(
ID INT NOT NULL
,Name VARCHAR(255) MASKED WITH (FUNCTION = 'default()') NULL
,BirthDate DATE MASKED WITH (FUNCTION = 'default()') NOT NULL
,Social_Security BIGINT MASKED WITH (FUNCTION = 'default()') NOT NULL
)WITH (DATA_SOURCE = [PolyRDM],LOCATION = N'[DataMart].[dbo].[DefaultMask]')
GO
For External Tables, are data masking not supported?
Thanks,
grajee