Collections:
"DROP FUNCTION" - Dropping an Existing User Defined Function in SQL Server
How To Drop an Existing User Defined Function in SQL Server Transact-SQL?
✍: FYIcenter.com
If you have an existing user defined function that you don't want to use it anymore, you should delete it from the SQL Server by using the "DROP FUNCTION" statement as shown in the tutorial example below:
USE FyiCenterData; GO DROP FUNCTION Welcome; GO Command(s) completed successfully. SELECT * FROM sys.objects WHERE type_desc LIKE '%FUNCTION'; GO name object_id schema_id type type_desc -------- ----------- ---------- ---- ------------------- Sundays 2117582582 1 FN SQL_SCALAR_FUNCTION (1 row(s) affected)
User defined function "Welcome" is no longer in the database.
⇒ Generating CREATE FUNCTION Scripts on Existing Functions in SQL Server
⇐ sys.objects - Listing All User Defined Functions in SQL Server
2016-12-24, 2984🔥, 0💬
Popular Posts:
How to set database to be READ_ONLY in SQL Server? Databases in SQL Server have two update options: ...
How To Drop an Index in Oracle? If you don't need an existing index any more, you should delete it w...
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
How To Revise and Re-Run the Last SQL Command in Oracle? If executed a long SQL statement, found a m...
How To Locate and Take Substrings with CHARINDEX() and SUBSTRING() Functions in SQL Server Transact-...