Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 7e574db

Browse files
authored
Updating the create external Language script
1 parent 0877236 commit 7e574db

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/linux/sql-server-linux-setup-language-extensions.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,13 @@ The following example adds an external language called Java to a database on SQL
194194

195195
```SQL
196196
CREATE EXTERNAL LANGUAGE Java
197-
FROM (CONTENT = N'<path-to-tar.gz>', FILE_NAME = 'javaextension.so');
198-
GO
197+
FROM (CONTENT = N'/opt/mssql-extensibility/lib/java-lang-extension.tar.gz',
198+
FILE_NAME = 'javaextension.so',
199+
ENVIRONMENT_VARIABLES = N'{"JRE_HOME":"/opt/mssql/lib/zulu-jre-11"}')
199200
```
201+
For the Java extension, the environment variable “JRE_HOME” is used to determine the path to find and initialize the JVM from.
202+
203+
CREATE EXTERNAL LANGUAGE ddl provides a parameter (ENVIRONMENT_VARIABLES) to set environment variables specifically for the process hosting the extension. This is the recommended and most effective way to set environment variables required by external language extensions.
200204

201205
For more information, see [CREATE EXTERNAL LANGUAGE](https://docs.microsoft.com/sql/t-sql/statements/create-external-language-transact-sql).
202206

0 commit comments

Comments
 (0)