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, 2985🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions on Transaction Management: Commit or Rollback in...
How to set the current database in SQL Server? Once you are connected to the SQL Server, you should ...
How To Concatenate Two Character Strings Together in SQL Server Transact-SQL? Concatenating two char...
Is PL/SQL Language Case Sensitive in Oracle? PL/SQL language is not case sensitive: Reserved words a...
How To Use DATEADD() Function in SQL Server Transact-SQL? DATEADD() is a very useful function for ma...