DF055: A deprecated system function is used.
Last modified: May 28, 2025
The topic describes the DF055 T-SQL code analysis rule.
Category
DEPRECATED
Message
A deprecated system function is used.
Description
It is recommended to avoid using deprecated system functions.
Additional information
A list of functions to be deprecated is as follows:
- databaseproperty
- file_id
- indexkey_property
- user_id
- permissions
- fn_get_sql
- fn_servershareddrives
- fn_virtualservernodes
Noncompliant code example
SELECT USER_ID('Harold');
GO
Was this page helpful?