Hi Bhushan Verma,
I modify it with the table and field that i want to block but my problem is even if I update the other field it also blocks. Below is the script.
IF @transaction_type IN (N'U') AND (@Object_type = N'15')
begin
if exists(select T0.docentry from ODLN T0
where T0.docentry = @list_of_cols_val_tab_del and
T0.[U_DR_No] IS NOT NULL )
begin
SET @error = 15
SET @error_message = N'UDF Update is not allowed'
end
end
Thanks
Darryl