8000 sql-docs/docs/language-extensions/java-overview.md at live · samegutt/sql-docs · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 3.03 KB

File metadata and controls

50 lines (35 loc) · 3.03 KB
4F6A
title What is Java Language Extension?
titleSuffix SQL Server Language Extensions
description Java Language Extension is a feature of SQL Server used for executing external Java code. Relational data can be used in the external Java code using the extensibility framework.
author rothja
ms.author jroth
ms.date 11/10/2020
ms.topic overview
ms.prod sql
ms.technology language-extensions
monikerRange >=sql-server-ver15||>=sql-server-linux-ver15
ms.custom
intro-overview

What is Java Language Extension?

[!INCLUDE SQL Server 2019 and later]

Java Language Extension is a feature of SQL Server used for executing external Java code. The relational data can be used in the external Java code using the extensibility framework. The Java Language Extension is part of SQL Server Language Extensions.

The default Java runtime is Zulu Open JRE. You can also use another Java JRE or SDK.

What you can do with the Java Language Extension

The Java Language Extension uses the extensibility framework for executing external Java code. Code execution is isolated from the core engine processes, but fully integrated with SQL Server query execution. You can execute Java code at the data's source, eliminating the need to pull data across the network.

The external Java language is defined with CREATE EXTERNAL LANGUAGE. The system stored procedure sp_execute_external_script is used as the interface for executing the Java code.

Get started with Java Language Extension

  1. Install SQL Server Java Language Extension on Windows or on Linux.

  2. Configure a development tools.

  3. Write your first Java code.

Limitations

The number of values in input and output buffers can't exceed MAX_INT (2^31-1) since that is the maximum number of elements that can be allocated in an array in Java.

Next steps

0