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

Commit 5b8cefb

Browse files
authored
Merge pull request #8359 from MikeRayMSFT/release-sqlseattle-ctp23
Syncing from release-sqlseattle
2 parents daaa885 + 8220d85 commit 5b8cefb

5 files changed

Lines changed: 5 additions & 47 deletions

File tree

docs/advanced-analytics/java/howto-call-java-from-sql.md

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to call Java classes from SQL Server stored procedures us
44
ms.prod: sql
55
ms.technology: machine-learning
66

7-
ms.date: 12/02/2018
7+
ms.date: 12/04/2018
88
ms.topic: conceptual
99
author: HeidiSteen
1010
ms.author: heidist
@@ -14,13 +14,6 @@ monikerRange: ">=sql-server-ver15||=sqlallproducts-allversions"
1414

1515
# How to call Java from SQL Server 2019 preview
1616

17-
CTP 2.2 introduces an additional approach for calling Java from SQL Server 2019 preview. Depending on your operating system, you can adopt the following approaches:
18-
19-
* Use the existing approach, **sp_execute_external_script**, for SQL Server on Windows or Linux.
20-
* Currently Windows-only in this CTP: [upload compiled Java code to an external library](#create-external-library).
21-
22-
## Use a system stored procedure (sp_execute_external_script)
23-
2417
When using the [Java language extension](extension-java.md), the [sp_execute_external_script](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql) system stored procedure is the interface used to call the Java runtime. Permissions on the database apply to Java code execution.
2518

2619
This article explains implementation details for Java classes and methods that execute on SQL Server. Once you are familiar with these details, review the [Java sample](java-first-sample.md) as your next step.
@@ -157,29 +150,6 @@ public static boolean[][] outputNullMap
157150
```
158151
<a name="create-external-library"></a>
159152

160-
## Use DDL (CREATE EXTERNAL LIBRARY)
161-
162-
In CTP 2.2 on Windows only, you can create an external library for compiled Java code in a jar, uploaded along with any dependencies into a database. Use the [CREATE EXTERNAL LIBRARY (Transact-SQL)](../../t-sql/statements/create-external-library-transact-sql.md) statement to upload your code:
163-
164-
```sql
165-
CREATE EXTERNAL LIBRARY myJar
166-
FROM (CONTENT = '<local path to .jar file>')
167-
WITH (LANGUAGE = 'Java');
168-
GO
169-
```
170-
171-
Using an external library eliminates the classpath requirement, as well as the necessity of setting permissions on each folder in the path. You can simply call the Java class, and SQL Server will automatically have access to your classes in the library.
172-
173-
```sql
174-
EXEC sp_execute_external_script
175-
@language = N'Java'
176-
, @script = N'MyPackage.MyCLass.myMethod'
177-
, @input_data_1 = N'SELECT * FROM MYTABLE'
178-
with result sets ((column1 int))
179-
```
180-
181-
> [!Note]
182-
> Jar files are recommended over individual .class files. It's common practice in Java, which makes the overall experience easier.
183153

184154
## Next steps
185155

docs/advanced-analytics/what-s-new-in-sql-server-machine-learning-services.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: New feature announcements for each release of SQL Server 2016 R Ser
44
ms.prod: sql
55
ms.technology: machine-learning
66

7-
ms.date: 12/02/2018
7+
ms.date: 12/04/2018
88
ms.topic: conceptual
99
author: HeidiSteen
1010
ms.author: heidist
@@ -23,7 +23,6 @@ This release adds the top-requested features for R and Python machine learning o
2323

2424
| Release | Feature update |
2525
|---------|----------------|
26-
| CTP 2.2 | On Windows only, Java code can be now accessed in an external library using the [CREATE EXTERNAL LIBRARY (Transact-SQL)](../t-sql/statements/create-external-library-transact-sql.md) statement. Equivalent functionality will be available on Linux in an upcoming CTP. Learn more: [How to call Java from SQL Server](java/howto-call-java-from-sql.md). |
2726
| CTP 2.0 | Linux platform support for R and Python machine learning. Get started with [Install SQL Server Machine Learning Services on Linux](../linux/sql-server-linux-setup-machine-learning.md). |
2827
| | [Java language extension](java/extension-java.md) on both Windows and Linux is new in SQL Server 2019 preview. You can make compiled Java code available to SQL Server by assigning permissions and setting the path. Client apps with access SQL Server can use data and run your code by calling [sp_execute_external_script](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql), the same procedure used for R and Python integration on SQL Server. |
2928
| | The [sp_execute_external_script](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql) introduces two new parameters that enable you to easily generate multiple models from partitioned data. Learn more in this tutorial, [Create partition-based models in R](tutorials/r-tutorial-create-models-per-partition.md). |

docs/sql-server/sql-server-ver15-release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Limited support may be found at one of the following locations:
7474

7575
### SQL Server Integration Services (SSIS) page deployment after switching DB to single-user mode and then switching back
7676

77-
- **Issue and customer impact**: After SSISB is switched from single-user mode back to multi-user mode, the following error may be reported when deploying a package:
77+
- **Issue and customer impact**: After SSISDB is switched from single-user mode back to multi-user mode, the following error may be reported when deploying a package:
7878

7979
`Cannot continue the execution because the session is in the kill state.`
8080

docs/sql-server/what-s-new-in-sql-server-ver15.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Community technology preview (CTP) 2.2 is the latest public release of [!INCLUDE
3030

3131
- [Database engine](#databaseengine)
3232
- Use UTF-8 character encoding with SQL Server Replication.
33-
- External libraries for Java language enabled (Windows)
3433

3534
## Previous CTPs
3635

@@ -111,12 +110,6 @@ Continue reading for more details about these features.
111110

112111
[!INCLUDE[sql-server-2019](../includes/sssqlv15-md.md)] introduces or enhances the following new features for the [!INCLUDE[ssDEnoversion](../includes/ssdenoversion-md.md)]
113112

114-
### External libraries for Java language (CTP 2.2)
115-
116-
On Windows, you can save .jar files as external libraries in the database. Call these libraries when executing Java code from SQL Server.
117-
118-
For more information, see [How to call Java in SQL Server](../advanced-analytics/java/howto-call-java-from-sql.md)
119-
120113
### Scalar UDF inlining (CTP 2.1)
121114

122115
Scalar UDF inlining automatically transforms scalar user-defined functions (UDF) into relational expressions and embeds them in the calling SQL query, thereby improving the performance of workloads that leverage scalar UDFs. Scalar UDF inlining facilitates cost-based optimization of operations inside UDFs, and results in efficient plans that are set-oriented and parallel as opposed to inefficient, iterative, serial execution plans. This feature is enabled by default under database compatibility level 150.

docs/t-sql/statements/create-external-library-transact-sql.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@ monikerRange: ">=sql-server-2017||=sqlallproducts-allversions||>=sql-server-linu
2424

2525
[!INCLUDE[tsql-appliesto-ss2017-xxxx-xxxx-xxx-md](../../includes/tsql-appliesto-ss2017-xxxx-xxxx-xxx-md.md)]
2626

27-
Uploads R packages or compiled Java (.jar) files to a database from the specified byte stream or file path. This statement serves as a generic mechanism for the database administrator to upload artifacts needed for any new external language runtimes (R, Python, Java) and OS platforms supported by [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)].
27+
Uploads R packages files to a database from the specified byte stream or file path. This statement serves as a generic mechanism for the database administrator to upload artifacts needed for any new external language runtimes (currently just R) and OS platforms supported by [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)].
2828

29-
In SQL Server 2017 and later, R language and Windows platform are supported.
30-
31-
In SQL Server 2019 preview CTP 2.2, on Windows only, Java language is supported. For more information about uploading a jar to SQL Server, see [How to call Java in SQL Server](../../advanced-analytics/java/howto-call-java-from-sql.md).
32-
33-
Support for Python and Linux is planned for a later release.
29+
In SQL Server 2017 and later, R language and Windows platform are supported. Support for Python and Linux is planned for a later release.
3430

3531
## Syntax
3632

0 commit comments

Comments
 (0)