Home

Deprecated features should not be used

Rule description

  • Deprecated features should not be used

 

Non-compliant Code Example

SELECT * FROM fn_servershareddrives();  --Non compliant code (Deprecated features is used)
DECLARE @ptrval binary(16);  
SELECT @ptrval = TEXTPTR(pr_info)   
   FROM pub_info pr, publishers p  
      WHERE p.pub_id = pr.pub_id   
      AND p.pub_name = 'New Moon Books'  
UPDATETEXT pub_info.pr_info @ptrval 88 1 'b';  --Non compliant code (Deprecated features is used)
DECLARE @ptrval binary(16);  
SELECT @ptrval = TEXTPTR(pr_info)   
FROM pub_info pr, publishers p  
WHERE p.pub_id = pr.pub_id   
   AND p.pub_name = 'New Moon Books'  
WRITETEXT pub_info.pr_info @ptrval 'New Moon Books (NMB) has just released another top ten publication. With the latest publication this makes NMB the hottest new publisher of the year!';  --Non compliant code (Deprecated features is used)
Visual Expert 2020
 VETSQLRULE29