Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server 2019 (15.x) and later versions
Language Extensions is a feature of SQL Server used for executing external code. The relational data can be used in the external code using the extensibility framework. In SQL Server 2019 (15.x) and later versions, Java, C#, Python, and R runtimes are supported.
Note
For executing Python or R in SQL Server, see the Machine Learning Services with Python and R documentation. With SQL Server 2019 (15.x) and later versions, you can use a custom Python and R runtime with Language Extensions. For more information, see Install a Python custom runtime for SQL Server and Install an R custom runtime for SQL Server.
Language Extensions uses the extensibility framework for executing external code. Code execution is isolated from the core engine processes, but fully integrated with SQL Server query execution. You can execute code at the data's source, eliminating the need to pull data across the network.
External languages are defined with CREATE EXTERNAL LANGUAGE. The system stored procedure sp_execute_external_script is used as the interface for executing the code.
Language Extensions provides multiple advantages:
Data security. Bringing external language execution closer to the source of data avoids insecure data movement.
Speed. Databases are optimized for set-based operations.
Ease of deployment and integration. SQL Server is the central point of operations for many other data management tasks and applications. By using data in the database, you ensure that the data used by the language extension is consistent and up-to-date.
The native Common Language Runtime Integration allows you to implement some of the functionalities of SQL Server with .NET languages. For a discussion of the differences between SQL CLR and SQL language extensions, see Compare SQL Server Language Extensions to SQL CLR.
For more information about security with the extensibility framework, see Security architecture for the extensibility framework in SQL Server Machine Learning Services.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Module
Introduction to SQL Server 2022 T-SQL enhancements - Training
SQL Server 2022 introduces a range of new features and enhancements, providing powerful tools and capabilities that optimize performance and offer better control on SQL objects manipulation and creation.
Certification
Microsoft Certified: Azure Data Engineer Associate - Certifications
Demonstrate understanding of common data engineering tasks to implement and manage data engineering workloads on Microsoft Azure, using a number of Azure services.
Documentation
CREATE EXTERNAL LANGUAGE (Transact-SQL) - SQL Server
CREATE EXTERNAL LANGUAGE (Transact-SQL) - SQL Server
Install .NET Language Extension on Windows - SQL Server Language Extensions
Learn how to install the SQL Server .NET Language Extension feature on Windows.
What's new in SQL Server Language Extensions? - SQL Server Language Extensions
Learn about what's new in SQL Server Language Extensions that expands, extends, and deepens the integration between external languages and the data platform.