Hi friends
I want to know how to delete or change a function in SQL Server.
Thank you.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Apr 30, 2012, 11:19 PM
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.
Suthish NairPosted Apr 30, 2012, 4:09 PM