GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • SS64
  • SQL Server
  • How-to

This view

  • Original page
  • New address

GeezerVison is showing ss64.com — DROP FUNCTION - SQL Server

  • SS64
  • SQL Server
  • How-to

DROP FUNCTION

Remove a user-defined function.

Syntax
      DROP FUNCTION [ IF EXISTS ] { [ schema_name. ] function_name } [ ,...n ]  

Key:
    schema_name    The schema to which the user-defined function belongs.

    function_name  Name of the function(s) to remove.

To run this command first remove any CHECK constraints, or DEFAULT constraints that reference the function.

Also an indexed computed column that references the function will prevent dropping the function.

Examples

DROP FUNCTION MySchema.fn_myfunction;
GO

“Form follows function” ~ Louis H. Sullivan

Related commands

CREATE FUNCTION - Create a user-defined function.
ALTER FUNCTION - Alter a user-defined function.


 
Copyright © 1999-2026 SS64.com
Some rights reserved
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.