SlideShare a Scribd company logo
Summer in Greece Festival
Microsoft Learn Student Ambassadors | GreeceMicrosoft Learn Student Ambassadors | Greece
Machine Learning
Services
in SQL Server 2019
1988 2000 Founderv 6.0 60 +2010
Antonios Chatzipavlis
Data Solutions Consultant & Trainer
Connect / Explore / Learn
V.102010 - 2020
A community for Greek professionals who use the
Microsoft Data Platform
Connect / Explore / Learn
WebminarsArticles
Videos News
EventsResources
@sqlschool@antoniosch
Sqlschoolgr
Page
Sqlschool
User Group
Sqlschool.gr
Group
SQLschoolGR
channel
Machine Learning Services
in
SQL Server 2019
Microsoft Learn Student Ambassadors | Greece
Data Analysis Scientific Process
• Create, Read, Update, Delete
• Programming Control
• Reporting
• Business Intelligence
• Statistics and Data Mining
• Story Telling
• Define the Question
• Create Hypothesis
• Create a Repeatable Test
• Publish Results
Data Science
Microsoft Learn Student Ambassadors | Greece
Descriptive
- Reporting and Scorecards
- Grouping Similarity Scores
Prescriptive
- Optimization and Simulation
- What, Why, When
Predictive
- Predicting the future from the past
Types of Analysis
Machine
Learning
Microsoft Learn Student Ambassadors | Greece
Machine Learning Algorithms
Which category?
How much/many?
Which Group?
Is it odd?
Which action?
Classification
Regression
Clustering
Anomaly
Reinforcement Learning
Microsoft Learn Student Ambassadors | Greece
Team
Data
Science
Process
https://bit.ly/2DkeHvL
Microsoft Learn Student Ambassadors | Greece
Collaboration and end-to-end efficiency
• Deploy training/scoring scripts in DB
• Make models accessible to any
applications
• Manage model version in DB
• Consume ML models from any apps
• Make simple stored proc calls
• Train models remotely on SQL Server
• Use R/Python code to embedded in T-SQL
stored procedure
• Explore and experiment with data
• Stay in your favorite IDE
• Use R, Python, T-SQL
Explore Train
Deploy
Share &
Consume
SQL Server
ML Services
App Developer
Data Scientist
Data Scientist
SQL Server DBA
Microsoft Learn Student Ambassadors | Greece
Evolution of SQL Server ML Services
Microsoft Learn Student Ambassadors | Greece
Machine Learning outside of database
Data
transformations
Model
training Model
Analytics Server
Scoring
Separate server or embedded logic
Application
Transactions
Data movement
Model
operationalization
New data
Predictions
Microsoft Learn Student Ambassadors | Greece
In-Database Machine Learning
Application
Data
transformations
Model
training
Scoring
Transactions
Microsoft Learn Student Ambassadors | Greece
How it works
Application
Server Box
Satellite
T-SQL
SQL Server
Launchpad Service
Direct
Communication
Performance
Microsoft Learn Student Ambassadors | Greece
• A database engine instance is required.
• Always On Availability Groups are supported for Machine Learning
Services.
• Always On Failover Cluster Instance (FCI) is supported with SQL Server
2019 and later.
• Don't install Machine Learning Services on a domain controller
• Side-by-side installation with other versions of Python and R is supported
but isn't recommended.
Pre-install checklist
Microsoft Learn Student Ambassadors | Greece
What we need to install?
Microsoft Learn Student Ambassadors | Greece
Set environment variables
Enable script execution
Restart the service
Post Installation actions
Microsoft Learn Student Ambassadors | Greece
Verify installation
R
Python
Microsoft Learn Student Ambassadors | Greece
• Create a login for SQLRUserGroup.
• Make sure that SQLRUserGroup has "Allow Log on locally" permissions.
• Firewall configuration for SQL Server Machine Learning Services.
• Ensure that SQL Server TCP network protocol is enabled.
• Ensure that SQL Server Remote Access is enabled.
• Manage disk quotas to avoid external scripts running tasks that exhaust
disk space
Additional configuration
Get Python package information
Get R package information
Microsoft Learn Student Ambassadors | Greece
Packages Version Description
revoscalepy 9.4.7
Used for remote compute contexts, streaming, parallel execution of rx
functions for data import and transformation, modeling, visualization,
and analysis.
microsoftml 9.4.7 Adds machine learning algorithms in Python.
Microsoft Python packages
Microsoft Learn Student Ambassadors | Greece
Packages Version Description
RevoScaleR 9.4.7
Used for remote compute contexts, streaming, parallel execution of rx
functions for data import and transformation, modeling, visualization, and
analysis.
sqlrutils 1.0.0 Used for including R script in stored procedures.
MicrosoftML 9.4.7 Adds machine learning algorithms in R.
olapR 1.0.0 Used for writing MDX statements in R.
Microsoft R packages
Microsoft Learn Student Ambassadors | Greece
Don't try to install Python packages directly in the SQL package library
using pip or similar methods.
Install Python / R packages with sqlmlutils
Python : https://bit.ly/3fn668o
R : https://bit.ly/2DE9IWb
Install new Python / R packages
For SQL Server 2019
Microsoft Learn Student Ambassadors | Greece
Code Execution
R / Python / Java
sp_execute_external_script
@language
@script
Microsoft Learn Student Ambassadors | Greece
Code Execution
Execute with Result Sets
EXECUTE sp_execute_external_script @language = N'Python'
, @script = N'OutputDataSet = InputDataSet;'
, @input_data_1 = N'SELECT * FROM T;'
WITH RESULT SETS(([ID] INT,[YOD] INT,[Name] nvarchar(200)));
GO
Microsoft Learn Student Ambassadors | Greece
• Generates a predicted value or scores
based on a stored model.
• Uses the native C++ extension
capabilities in SQL machine learning.
• Offers the fastest possible processing
speed of forecasting and prediction
workloads
• Support models in Open Neural
Network Exchange (ONNX) format or
models trained using the RevoScaleR
and revoscalepy packages.
PREDICT
T-SQL function
PREDICT
Code Execution
ML Samples
Microsoft Learn Student Ambassadors | Greece
Download them from GitHub https://bit.ly/2DyHLzc
In these reports, you can view details such as:
• Active Python or R sessions
• Configuration settings for the instance
• Execution statistics for machine learning jobs
• Extended events for R Services
• Python or R packages installed on the current instance
Monitor using SSMS Reports
Microsoft Learn Student Ambassadors | Greece
sys.dm_external_script_requests
Returns a row for each active worker account that is running an external script.
sys.dm_external_script_execution_stats
Returns one row for each type of external script request.
Monitor using DMVs
Microsoft Learn Student Ambassadors | Greece
Monitor using XE
event
SQLSatellite
predict%
https://bit.ly/33zlCf1
Monitor ML
Any
questions
Thank you!
@antoniosch - @sqlschool
./sqlschoolgr - ./groups/sqlschool
./c/SqlschoolGr
SQLschool.gr Group
Antonios Chatzipavlis
Data Solutions Consultant & Trainer
Machine Learning in SQL Server 2019

More Related Content

What's hot (20)

PPTX
Data virtualization using polybase
Antonios Chatzipavlis
 
PPTX
Experience SQL Server 2017: The Modern Data Platform
Bob Ward
 
PPTX
The Roadmap for SQL Server 2019
Amit Banerjee
 
PDF
Exploring sql server 2016 bi
Antonios Chatzipavlis
 
PPTX
SQL server 2016 New Features
Amin Mesbahi
 
PDF
SQL Server 2019 Big Data Cluster
Maximiliano Accotto
 
PDF
Exploring sql server 2016
Antonios Chatzipavlis
 
PPTX
How SQL Server 2016 SP1 Changes the Game
PARIKSHIT SAVJANI
 
PDF
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Lars Platzdasch
 
PDF
SQL server Backup Restore Revealed
Antonios Chatzipavlis
 
PPTX
Azure data bricks by Eugene Polonichko
Alex Tumanoff
 
PPTX
Keep your environment always on with sql server 2016 sql bits 2017
Bob Ward
 
PPTX
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Bob Ward
 
PDF
Using extended events for troubleshooting sql server
Antonios Chatzipavlis
 
PPTX
Sql server hybrid what every sql professional should know
Bob Ward
 
PDF
SQL Server 2016 novelties
MSDEVMTL
 
PPTX
What’s new in SQL Server 2017
James Serra
 
PPTX
Microsoft ignite 2018 SQL Server 2019 big data clusters - intro session
Travis Wright
 
DOCX
Senior database administrator
Mustafa EL-Masry
 
PPTX
Spark
fatemehjamalii
 
Data virtualization using polybase
Antonios Chatzipavlis
 
Experience SQL Server 2017: The Modern Data Platform
Bob Ward
 
The Roadmap for SQL Server 2019
Amit Banerjee
 
Exploring sql server 2016 bi
Antonios Chatzipavlis
 
SQL server 2016 New Features
Amin Mesbahi
 
SQL Server 2019 Big Data Cluster
Maximiliano Accotto
 
Exploring sql server 2016
Antonios Chatzipavlis
 
How SQL Server 2016 SP1 Changes the Game
PARIKSHIT SAVJANI
 
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Lars Platzdasch
 
SQL server Backup Restore Revealed
Antonios Chatzipavlis
 
Azure data bricks by Eugene Polonichko
Alex Tumanoff
 
Keep your environment always on with sql server 2016 sql bits 2017
Bob Ward
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Bob Ward
 
Using extended events for troubleshooting sql server
Antonios Chatzipavlis
 
Sql server hybrid what every sql professional should know
Bob Ward
 
SQL Server 2016 novelties
MSDEVMTL
 
What’s new in SQL Server 2017
James Serra
 
Microsoft ignite 2018 SQL Server 2019 big data clusters - intro session
Travis Wright
 
Senior database administrator
Mustafa EL-Masry
 

Similar to Machine Learning in SQL Server 2019 (20)

PDF
Predictive Analysis using Microsoft SQL Server R Services
Fisnik Doko
 
PDF
Sql Server Machine Learning Services - Sql Saturday Prague 2018 #SqlSatPrague
Luis Beltran
 
PDF
Introduction to Machine Learning on Azure
Antonios Chatzipavlis
 
PPTX
DataMass Summit - Machine Learning for Big Data in SQL Server
Łukasz Grala
 
PDF
ITCamp 2018 - Andrea Martorana Tusa - Failure prediction for manufacturing in...
ITCamp
 
PPTX
20160317 - PAZUR - PowerBI & R
Łukasz Grala
 
PDF
MBA vs MSc.pdf
Renaissance University
 
PDF
[AI06] Running ML in SQL Serve
de:code 2017
 
PPTX
MSPInspire - Azure ML and Power BI
Orlando Mariano
 
PDF
Advanced analytics with R and SQL
MSDEVMTL
 
PPTX
The 4 Machine Learning Models Imperative for Business Transformation
RocketSource
 
PPTX
Diplomado Técnico SQL Server 2012 - Sesión 5/8
John Bulla
 
PDF
Michal Marušan: Scalable R
GapData Institute
 
PDF
Machine learning at b.e.s.t. summer university
László Kovács
 
PDF
An introduction to Machine Learning
Julien SIMON
 
PDF
Abhijay Tyagi Resume | Master's in Data Science..pdf
AbhijayTyagi2
 
PPTX
How Data Science is Preventing College Dropouts and Advancing Student Success
VMware Tanzu
 
PDF
Devansh khakhar resume
DevanshKhakhar
 
PPTX
Azure machine learning ile tahminleme modelleri
Koray Kocabas
 
DOCX
Data scientist
Mostafa Majidpour
 
Predictive Analysis using Microsoft SQL Server R Services
Fisnik Doko
 
Sql Server Machine Learning Services - Sql Saturday Prague 2018 #SqlSatPrague
Luis Beltran
 
Introduction to Machine Learning on Azure
Antonios Chatzipavlis
 
DataMass Summit - Machine Learning for Big Data in SQL Server
Łukasz Grala
 
ITCamp 2018 - Andrea Martorana Tusa - Failure prediction for manufacturing in...
ITCamp
 
20160317 - PAZUR - PowerBI & R
Łukasz Grala
 
MBA vs MSc.pdf
Renaissance University
 
[AI06] Running ML in SQL Serve
de:code 2017
 
MSPInspire - Azure ML and Power BI
Orlando Mariano
 
Advanced analytics with R and SQL
MSDEVMTL
 
The 4 Machine Learning Models Imperative for Business Transformation
RocketSource
 
Diplomado Técnico SQL Server 2012 - Sesión 5/8
John Bulla
 
Michal Marušan: Scalable R
GapData Institute
 
Machine learning at b.e.s.t. summer university
László Kovács
 
An introduction to Machine Learning
Julien SIMON
 
Abhijay Tyagi Resume | Master's in Data Science..pdf
AbhijayTyagi2
 
How Data Science is Preventing College Dropouts and Advancing Student Success
VMware Tanzu
 
Devansh khakhar resume
DevanshKhakhar
 
Azure machine learning ile tahminleme modelleri
Koray Kocabas
 
Data scientist
Mostafa Majidpour
 
Ad

More from Antonios Chatzipavlis (20)

PDF
Migrate SQL Workloads to Azure
Antonios Chatzipavlis
 
PDF
Workload Management in SQL Server 2019
Antonios Chatzipavlis
 
PDF
Loading Data into Azure SQL DW (Synapse Analytics)
Antonios Chatzipavlis
 
PDF
Introduction to DAX Language
Antonios Chatzipavlis
 
PDF
Building diagnostic queries using DMVs and DMFs
Antonios Chatzipavlis
 
PDF
Designing a modern data warehouse in azure
Antonios Chatzipavlis
 
PDF
Designing a modern data warehouse in azure
Antonios Chatzipavlis
 
PDF
SQLServer Database Structures
Antonios Chatzipavlis
 
PDF
Sqlschool 2017 recap - 2018 plans
Antonios Chatzipavlis
 
PDF
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Antonios Chatzipavlis
 
PDF
Microsoft SQL Family and GDPR
Antonios Chatzipavlis
 
PDF
Statistics and Indexes Internals
Antonios Chatzipavlis
 
PDF
Introduction to Azure Data Lake
Antonios Chatzipavlis
 
PDF
Azure SQL Data Warehouse
Antonios Chatzipavlis
 
PDF
Introduction to azure document db
Antonios Chatzipavlis
 
PDF
Introduction to sql database on azure
Antonios Chatzipavlis
 
PDF
Implementing Mobile Reports in SQL Sserver 2016 Reporting Services
Antonios Chatzipavlis
 
PDF
Auditing Data Access in SQL Server
Antonios Chatzipavlis
 
PDF
Live Query Statistics & Query Store in SQL Server 2016
Antonios Chatzipavlis
 
PDF
Dynamic data masking sql server 2016
Antonios Chatzipavlis
 
Migrate SQL Workloads to Azure
Antonios Chatzipavlis
 
Workload Management in SQL Server 2019
Antonios Chatzipavlis
 
Loading Data into Azure SQL DW (Synapse Analytics)
Antonios Chatzipavlis
 
Introduction to DAX Language
Antonios Chatzipavlis
 
Building diagnostic queries using DMVs and DMFs
Antonios Chatzipavlis
 
Designing a modern data warehouse in azure
Antonios Chatzipavlis
 
Designing a modern data warehouse in azure
Antonios Chatzipavlis
 
SQLServer Database Structures
Antonios Chatzipavlis
 
Sqlschool 2017 recap - 2018 plans
Antonios Chatzipavlis
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Antonios Chatzipavlis
 
Microsoft SQL Family and GDPR
Antonios Chatzipavlis
 
Statistics and Indexes Internals
Antonios Chatzipavlis
 
Introduction to Azure Data Lake
Antonios Chatzipavlis
 
Azure SQL Data Warehouse
Antonios Chatzipavlis
 
Introduction to azure document db
Antonios Chatzipavlis
 
Introduction to sql database on azure
Antonios Chatzipavlis
 
Implementing Mobile Reports in SQL Sserver 2016 Reporting Services
Antonios Chatzipavlis
 
Auditing Data Access in SQL Server
Antonios Chatzipavlis
 
Live Query Statistics & Query Store in SQL Server 2016
Antonios Chatzipavlis
 
Dynamic data masking sql server 2016
Antonios Chatzipavlis
 
Ad

Recently uploaded (20)

PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 

Machine Learning in SQL Server 2019

  • 1. Summer in Greece Festival Microsoft Learn Student Ambassadors | GreeceMicrosoft Learn Student Ambassadors | Greece Machine Learning Services in SQL Server 2019
  • 2. 1988 2000 Founderv 6.0 60 +2010 Antonios Chatzipavlis Data Solutions Consultant & Trainer Connect / Explore / Learn
  • 3. V.102010 - 2020 A community for Greek professionals who use the Microsoft Data Platform Connect / Explore / Learn WebminarsArticles Videos News EventsResources @sqlschool@antoniosch Sqlschoolgr Page Sqlschool User Group Sqlschool.gr Group SQLschoolGR channel
  • 5. Microsoft Learn Student Ambassadors | Greece Data Analysis Scientific Process • Create, Read, Update, Delete • Programming Control • Reporting • Business Intelligence • Statistics and Data Mining • Story Telling • Define the Question • Create Hypothesis • Create a Repeatable Test • Publish Results Data Science
  • 6. Microsoft Learn Student Ambassadors | Greece Descriptive - Reporting and Scorecards - Grouping Similarity Scores Prescriptive - Optimization and Simulation - What, Why, When Predictive - Predicting the future from the past Types of Analysis Machine Learning
  • 7. Microsoft Learn Student Ambassadors | Greece Machine Learning Algorithms Which category? How much/many? Which Group? Is it odd? Which action? Classification Regression Clustering Anomaly Reinforcement Learning
  • 8. Microsoft Learn Student Ambassadors | Greece Team Data Science Process https://bit.ly/2DkeHvL
  • 9. Microsoft Learn Student Ambassadors | Greece Collaboration and end-to-end efficiency • Deploy training/scoring scripts in DB • Make models accessible to any applications • Manage model version in DB • Consume ML models from any apps • Make simple stored proc calls • Train models remotely on SQL Server • Use R/Python code to embedded in T-SQL stored procedure • Explore and experiment with data • Stay in your favorite IDE • Use R, Python, T-SQL Explore Train Deploy Share & Consume SQL Server ML Services App Developer Data Scientist Data Scientist SQL Server DBA
  • 10. Microsoft Learn Student Ambassadors | Greece Evolution of SQL Server ML Services
  • 11. Microsoft Learn Student Ambassadors | Greece Machine Learning outside of database Data transformations Model training Model Analytics Server Scoring Separate server or embedded logic Application Transactions Data movement Model operationalization New data Predictions
  • 12. Microsoft Learn Student Ambassadors | Greece In-Database Machine Learning Application Data transformations Model training Scoring Transactions
  • 13. Microsoft Learn Student Ambassadors | Greece How it works Application Server Box Satellite T-SQL SQL Server Launchpad Service Direct Communication Performance
  • 14. Microsoft Learn Student Ambassadors | Greece • A database engine instance is required. • Always On Availability Groups are supported for Machine Learning Services. • Always On Failover Cluster Instance (FCI) is supported with SQL Server 2019 and later. • Don't install Machine Learning Services on a domain controller • Side-by-side installation with other versions of Python and R is supported but isn't recommended. Pre-install checklist
  • 15. Microsoft Learn Student Ambassadors | Greece What we need to install?
  • 16. Microsoft Learn Student Ambassadors | Greece Set environment variables Enable script execution Restart the service Post Installation actions
  • 17. Microsoft Learn Student Ambassadors | Greece Verify installation R Python
  • 18. Microsoft Learn Student Ambassadors | Greece • Create a login for SQLRUserGroup. • Make sure that SQLRUserGroup has "Allow Log on locally" permissions. • Firewall configuration for SQL Server Machine Learning Services. • Ensure that SQL Server TCP network protocol is enabled. • Ensure that SQL Server Remote Access is enabled. • Manage disk quotas to avoid external scripts running tasks that exhaust disk space Additional configuration
  • 19. Get Python package information
  • 20. Get R package information
  • 21. Microsoft Learn Student Ambassadors | Greece Packages Version Description revoscalepy 9.4.7 Used for remote compute contexts, streaming, parallel execution of rx functions for data import and transformation, modeling, visualization, and analysis. microsoftml 9.4.7 Adds machine learning algorithms in Python. Microsoft Python packages
  • 22. Microsoft Learn Student Ambassadors | Greece Packages Version Description RevoScaleR 9.4.7 Used for remote compute contexts, streaming, parallel execution of rx functions for data import and transformation, modeling, visualization, and analysis. sqlrutils 1.0.0 Used for including R script in stored procedures. MicrosoftML 9.4.7 Adds machine learning algorithms in R. olapR 1.0.0 Used for writing MDX statements in R. Microsoft R packages
  • 23. Microsoft Learn Student Ambassadors | Greece Don't try to install Python packages directly in the SQL package library using pip or similar methods. Install Python / R packages with sqlmlutils Python : https://bit.ly/3fn668o R : https://bit.ly/2DE9IWb Install new Python / R packages For SQL Server 2019
  • 24. Microsoft Learn Student Ambassadors | Greece Code Execution R / Python / Java sp_execute_external_script @language @script
  • 25. Microsoft Learn Student Ambassadors | Greece Code Execution Execute with Result Sets EXECUTE sp_execute_external_script @language = N'Python' , @script = N'OutputDataSet = InputDataSet;' , @input_data_1 = N'SELECT * FROM T;' WITH RESULT SETS(([ID] INT,[YOD] INT,[Name] nvarchar(200))); GO
  • 26. Microsoft Learn Student Ambassadors | Greece • Generates a predicted value or scores based on a stored model. • Uses the native C++ extension capabilities in SQL machine learning. • Offers the fastest possible processing speed of forecasting and prediction workloads • Support models in Open Neural Network Exchange (ONNX) format or models trained using the RevoScaleR and revoscalepy packages. PREDICT T-SQL function PREDICT
  • 29. Microsoft Learn Student Ambassadors | Greece Download them from GitHub https://bit.ly/2DyHLzc In these reports, you can view details such as: • Active Python or R sessions • Configuration settings for the instance • Execution statistics for machine learning jobs • Extended events for R Services • Python or R packages installed on the current instance Monitor using SSMS Reports
  • 30. Microsoft Learn Student Ambassadors | Greece sys.dm_external_script_requests Returns a row for each active worker account that is running an external script. sys.dm_external_script_execution_stats Returns one row for each type of external script request. Monitor using DMVs
  • 31. Microsoft Learn Student Ambassadors | Greece Monitor using XE event SQLSatellite predict% https://bit.ly/33zlCf1
  • 34. Thank you! @antoniosch - @sqlschool ./sqlschoolgr - ./groups/sqlschool ./c/SqlschoolGr SQLschool.gr Group Antonios Chatzipavlis Data Solutions Consultant & Trainer