You can accurately find out view name by table name.
SELECT VIEW_NAME FROM INFORMATION_SCHEMA.VIEW_TABLE_USAGE WHERE TABLE_NAME= 'Your Table Name'
However, it’s not easy to accurately obtain functions /stored procedures by table name
Anyway, you can try:
DECLARE @TABLE_NAME VARCHAR(100)
SELECT @TABLE_NAME = '%' + 'Your Table Name' + '%'
SELECT ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES
WHERE (ROUTINE_TYPE = 'FUNCTION' OR ROUTINE_TYPE = ‘PROCEDURE’) AND ROUTINE_DEFINITION LIKE @TABLE_NAME
SELECT VIEW_NAME FROM INFORMATION_SCHEMA.VIEW_TABLE_USAGE WHERE TABLE_NAME= 'Your Table Name'
However, it’s not easy to accurately obtain functions /stored procedures by table name
Anyway, you can try:
DECLARE @TABLE_NAME VARCHAR(100)
SELECT @TABLE_NAME = '%' + 'Your Table Name' + '%'
SELECT ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES
WHERE (ROUTINE_TYPE = 'FUNCTION' OR ROUTINE_TYPE = ‘PROCEDURE’) AND ROUTINE_DEFINITION LIKE @TABLE_NAME