다음을 통해 공유


How to: Delete Stored Procedures and User-Defined Functions

When you no longer need a stored procedure or user-defined function, you can delete it from the database.

Note

Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Customizing Development Settings in Visual Studio.

To delete a stored procedure

  1. In Server Explorer, expand the Stored Procedures folder.

  2. Right-click the stored procedure that you want to delete.

  3. Choose Delete from the shortcut menu.

  4. A message prompts you to confirm the deletion. Choose Yes.

    The stored procedure is deleted from the database and Server Explorer.

To delete a user-defined function

  1. In Server Explorer, expand the Functions folder.

  2. Right-click the function that you want to delete.

  3. Choose Delete from the shortcut menu.

  4. A message prompts you to confirm the deletion. Choose Yes.

    The user-defined function is deleted from the database and Server Explorer.

See Also

Other Resources

Working with Stored Procedures and User-Defined Functions