Hi friends
I want to know how to delete or change a function in SQL Server.
Thank you.
Delete or Change a Function in SQL Server
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Apr 30, 2012, 12:09 PM EDT
SenthilkumarRank #387 · 6.5K reputationPosted Apr 30, 2012, 7:19 PM EDT
You can do the changes and deletes as like table.
While creating you need to do by CREATE statement.
After that if you want to use the query window then you can use the following format.
ALTER FUNCTION fn_name
AS
BEGIN
//statement here
END
If you want to Drop the function then
DROP FUNCTION fn_name
If you use the object explorer then right click of function will generate the code for CREATE, ALTER, DROP.