Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 1.89 KB

File metadata and controls

69 lines (48 loc) · 1.89 KB
title DROP EXTERNAL LANGUAGE (Transact-SQL) - SQL Server
description DROP EXTERNAL LANGUAGE (Transact-SQL) - SQL Server
author MikeRayMSFT
ms.author mikeray
ms.reviewer rothja
ms.date 08/08/2019
ms.service sql
ms.subservice language-extensions
ms.topic reference
dev_langs
TSQL
monikerRange >=sql-server-ver15||>=sql-server-linux-ver15

DROP EXTERNAL LANGUAGE (Transact-SQL)

[!INCLUDE SQL Server 2019 and later]

Deletes an existing external language.

Syntax

DROP EXTERNAL LANGUAGE <language_name>

Arguments

language_name

Languages are database scoped objects. Language names must be unique within the database.

Permissions

To delete a language requires the privilege ALTER ANY EXTERNAL LANGUAGE. By default, any database owner, or the owner of the object, can also delete an external language.

Note

Note that before removing an external language, you need to remove the external libraries referencing the external language.

Return values

An informational message is returned if the statement was successful.

Remarks

Before an external language can be deleted, all external libraries for the specified language need to be deleted.

Examples

Create an external language Java:

CREATE EXTERNAL LANGUAGE Java 
FROM (CONTENT = N'<path-to-zip>', FILE_NAME = 'javaextension.dll');
GO

Drop the external language:

DROP EXTERNAL LANGUAGE Java;

See also

CREATE EXTERNAL LANGUAGE (Transact-SQL)
ALTER EXTERNAL LANGUAGE (Transact-SQL)
sys.external_languages
sys.external_language_files