SlideShare a Scribd company logo
Accelerate insights from your DATA
Amit Banerjee (@banerjeeamit)
Senior Program Manager
Microsoft Database Systems
Building One Million Predictions
Per Second Using SQL-R
C:Users> whoami
An affair with SQL Server for nearly a decade
Was part of SQL Escalation Services and Premier Field Engineering team at Microsoft
Now a Sr. Program Manager on the Microsoft Database Systems team focusing on performance, scale, HADR and
data movement
Speaker at SQL PASS 24HOP TechEd Virtual TechDays User Groups SQL Saturdays
Dabble around with supportability tools and have contributed to SQL Backup Simulator SQLDIAG/PSSDIAG Manager
and SQL Nexus
Co-authored “Professional SQL Server 2012: Internals and Troubleshooting” and “Pro SQL Server on Azure”
Own TroubleshootingSQL.com
Data Science
Process
Bringing
Analytics to Data
Demo
Optimization
Tips
Agenda
Jack Henry
A leading provider for banking solutions for credit unions across Americas
In-memory OLTPColumnStore
Age, Original Balance, Interest
Rate, Loan Remaining Months,
Credit Score
20M Vehicle Loans
PowerBI DashboardIn-Database
Analytics at Scale
R
Business User
Prepare for
analytics
Store
Predictions
Visualize
Deploying Loan Charge-off Prediction using HDInsight
Using Machine Learning Services in SQL
Server
Bringing Analytics to the Data
• Data already in SQL
• Use T-SQL know-hows to do ETL
• Use the power of in-memory OLTP and column store indexing to enhance
speed of ETL
• RevoScaleR package to provide parallelism and scale
Making the data travel
• Data sources not in SQL
• Data sinks not in SQL
• Complex ETL needed
• Long running R script
Using Python in SQL Server 2017
• Elimination of data movement
• Easy deployment
• Enterprise-grade performance and scale
• Rich extensibility
• Wide availability at no additional costs
sp_execute_external
EXEC sp_execute_external_script
@language = N'R'
, @script = N'iris_data <- iris;'
, @input_data_1 = N''
, @output_data_1_name = N'iris_data'
WITH RESULT SETS (("Sepal.Length" float not null,
"Sepal.Width" float not null,
"Petal.Length" float not null,
"Petal.Width" float not null, "Species" varchar(100)));
END;
go
sp_execute_external_script
@language = N'language' ,
@script = N'script',
@input_data_1 = ] 'input_data_1'
[ , @input_data_1_name = ] N'input_data_1_name' ]
[ , @output_data_1_name = 'output_data_1_name' ]
[ , @parallel = 0 | 1 ] [ , @params = ]
N'@parameter_name data_type [ OUT | OUTPUT ] [ ,...n ]'
[ , @parameter1 = ] 'value1' [ OUT | OUTPUT ] [ ,...n ]
[ WITH <execute_option> ]
[;]
<execute_option>::=
{
{ RESULT SETS UNDEFINED }
| { RESULT SETS NONE }
| { RESULT SETS ( <result_sets_definition> ) }
}
<result_sets_definition> ::=
{
(
{ column_name
data_type
[ COLLATE collation_name ]
[ NULL | NOT NULL ] }
[,...n ]
)
| AS OBJECT
[ db_name . [ schema_name ] . | schema_name . ]
{table_name | view_name | table_valued_function_name }
| AS TYPE [ schema_name.]table_type_name
}
Building a SQL Server scoring engine
Fast Models
Correct attribute selection
Fast Ingestion
Fast Reads
Uniform resource usage
Building a SQL Server scoring engine
Fast Models
Correct attribute selection
Fast Ingestion
Fast Reads
Uniform resource usage
Building a SQL Server scoring engine
Fast Models
Correct attribute selection
Fast Ingestion
Fast Reads
Uniform resource usage
Building a SQL Server scoring engine
Fast Models
Correct attribute selection
Fast Ingestion
Fast Reads
Uniform resource usage
SQL Server Tiger Team
Building a SQL Server scoring engine
Fast Models
Correct attribute selection
Fast Ingestion
Fast Reads
Uniform resource usage
Deployment Using:
• Triggers
• Powershell scripts
• SQL agent jobs
Do you want to use this?
A fully functional solution
that can work on using SQL
Server 2016 utilizing in-
memory OLTP, columnstore
indexes and SQL-R services
A fully functional solution
that can work on using
HDInsight Spark with R-
services
Rohan’s Keynote
Lets see this in action
References
• What’s new in Machine Learning Services in SQL Server
• Loan Classification using SQL Server 2016 R Services
• A walkthrough of Loan Classification using SQL Server 2016 R
Services
Using MicrosoftML in SQL-Server
• GitHub SQL Server Samples
• Quick Start template using SQL Server
• Quick Start template using HDInsight
• Performance tuning for R in SQL Server

More Related Content

What's hot

Sql developer resume
Sql developer resumeSql developer resume
Sql developer resume
guest9db49b8
 

What's hot (20)

Dynamic data masking sql server 2016
Dynamic data masking sql server 2016Dynamic data masking sql server 2016
Dynamic data masking sql server 2016
 
SSIS coding conventions, best practices, tips and programming guidelines for ...
SSIS coding conventions, best practices, tips and programming guidelines for ...SSIS coding conventions, best practices, tips and programming guidelines for ...
SSIS coding conventions, best practices, tips and programming guidelines for ...
 
Sql developer resume
Sql developer resumeSql developer resume
Sql developer resume
 
Cloud architectural patterns and Microsoft Azure tools
Cloud architectural patterns and Microsoft Azure toolsCloud architectural patterns and Microsoft Azure tools
Cloud architectural patterns and Microsoft Azure tools
 
Developing ssas cube
Developing ssas cubeDeveloping ssas cube
Developing ssas cube
 
Intoduction to sql 2012 Tabular Modeling
Intoduction to sql 2012 Tabular ModelingIntoduction to sql 2012 Tabular Modeling
Intoduction to sql 2012 Tabular Modeling
 
SSAS Tabular model importance and uses
SSAS  Tabular model importance and usesSSAS  Tabular model importance and uses
SSAS Tabular model importance and uses
 
Sql Portfolio
Sql PortfolioSql Portfolio
Sql Portfolio
 
SQL Server 2016 BI updates
SQL Server 2016 BI updatesSQL Server 2016 BI updates
SQL Server 2016 BI updates
 
R in Power BI
R in Power BIR in Power BI
R in Power BI
 
A Gentle Introduction to Microsoft SSAS
A Gentle Introduction to Microsoft SSASA Gentle Introduction to Microsoft SSAS
A Gentle Introduction to Microsoft SSAS
 
VishalWalujwarCV
VishalWalujwarCVVishalWalujwarCV
VishalWalujwarCV
 
Database synchronization prashant parit
Database synchronization   prashant paritDatabase synchronization   prashant parit
Database synchronization prashant parit
 
Extreme SSAS - Part I
Extreme SSAS  - Part IExtreme SSAS  - Part I
Extreme SSAS - Part I
 
Sql 2016 - What's New
Sql 2016 - What's NewSql 2016 - What's New
Sql 2016 - What's New
 
Survey of the Microsoft Azure Data Landscape
Survey of the Microsoft Azure Data LandscapeSurvey of the Microsoft Azure Data Landscape
Survey of the Microsoft Azure Data Landscape
 
VishalWalujwarCV
VishalWalujwarCVVishalWalujwarCV
VishalWalujwarCV
 
What's new in SQL Server Integration Services 2012?
What's new in SQL Server Integration Services 2012?What's new in SQL Server Integration Services 2012?
What's new in SQL Server Integration Services 2012?
 
Azure Data Factory Data Flow Preview December 2019
Azure Data Factory Data Flow Preview December 2019Azure Data Factory Data Flow Preview December 2019
Azure Data Factory Data Flow Preview December 2019
 
Introduction to Cortana Analytics
Introduction to Cortana AnalyticsIntroduction to Cortana Analytics
Introduction to Cortana Analytics
 

Similar to SQL PASS 2017 - Building one million predictions per second using SQL Server 2017

Developers' New features of Sql server express 2012
Developers' New features of Sql server express 2012Developers' New features of Sql server express 2012
Developers' New features of Sql server express 2012
Ziaur Rahman
 
Admin Guiding Query Plans
Admin Guiding Query PlansAdmin Guiding Query Plans
Admin Guiding Query Plans
rsnarayanan
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
udaymoogala
 
Data Mining for Developers
Data Mining for DevelopersData Mining for Developers
Data Mining for Developers
llangit
 
Advance Sql Server Store procedure Presentation
Advance Sql Server Store procedure PresentationAdvance Sql Server Store procedure Presentation
Advance Sql Server Store procedure Presentation
Amin Uddin
 

Similar to SQL PASS 2017 - Building one million predictions per second using SQL Server 2017 (20)

Developers' New features of Sql server express 2012
Developers' New features of Sql server express 2012Developers' New features of Sql server express 2012
Developers' New features of Sql server express 2012
 
SQL Server Query Optimization, Execution and Debugging Query Performance
SQL Server Query Optimization, Execution and Debugging Query PerformanceSQL Server Query Optimization, Execution and Debugging Query Performance
SQL Server Query Optimization, Execution and Debugging Query Performance
 
Data Mining 2008
Data Mining 2008Data Mining 2008
Data Mining 2008
 
BI 2008 Simple
BI 2008 SimpleBI 2008 Simple
BI 2008 Simple
 
Admin Guiding Query Plans
Admin Guiding Query PlansAdmin Guiding Query Plans
Admin Guiding Query Plans
 
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
 
PASSMN Summit 2009 Upgrade to SSAS 2008
PASSMN Summit 2009 Upgrade to SSAS 2008PASSMN Summit 2009 Upgrade to SSAS 2008
PASSMN Summit 2009 Upgrade to SSAS 2008
 
Data Mining for Developers
Data Mining for DevelopersData Mining for Developers
Data Mining for Developers
 
SQL Server 2008 Data Mining
SQL Server 2008 Data MiningSQL Server 2008 Data Mining
SQL Server 2008 Data Mining
 
Merge In Sql 2008
Merge In Sql 2008Merge In Sql 2008
Merge In Sql 2008
 
Web Cloud Computing SQL Server - Ferrara University
Web Cloud Computing SQL Server  -  Ferrara UniversityWeb Cloud Computing SQL Server  -  Ferrara University
Web Cloud Computing SQL Server - Ferrara University
 
SQL Server 2008 Data Mining
SQL Server 2008 Data MiningSQL Server 2008 Data Mining
SQL Server 2008 Data Mining
 
SQL Server 2008 Data Mining
SQL Server 2008 Data MiningSQL Server 2008 Data Mining
SQL Server 2008 Data Mining
 
Slow query bring it on
Slow query bring it onSlow query bring it on
Slow query bring it on
 
Resume (1)
Resume (1)Resume (1)
Resume (1)
 
Advance Sql Server Store procedure Presentation
Advance Sql Server Store procedure PresentationAdvance Sql Server Store procedure Presentation
Advance Sql Server Store procedure Presentation
 
U-SQL Query Execution and Performance Tuning
U-SQL Query Execution and Performance TuningU-SQL Query Execution and Performance Tuning
U-SQL Query Execution and Performance Tuning
 
Practical SQL query monitoring and optimization
Practical SQL query monitoring and optimizationPractical SQL query monitoring and optimization
Practical SQL query monitoring and optimization
 
SQL Optimizer vs Hive
SQL Optimizer vs Hive SQL Optimizer vs Hive
SQL Optimizer vs Hive
 

More from Amit Banerjee

More from Amit Banerjee (20)

The Roadmap for SQL Server 2019
The Roadmap for SQL Server 2019The Roadmap for SQL Server 2019
The Roadmap for SQL Server 2019
 
Azure database services for PostgreSQL and MySQL
Azure database services for PostgreSQL and MySQLAzure database services for PostgreSQL and MySQL
Azure database services for PostgreSQL and MySQL
 
Upgrade your SQL Server like a Ninja
Upgrade your SQL Server like a NinjaUpgrade your SQL Server like a Ninja
Upgrade your SQL Server like a Ninja
 
Troubleshooting common scenarios with Always On - A Dress Rehearsal
Troubleshooting common scenarios with Always On - A Dress RehearsalTroubleshooting common scenarios with Always On - A Dress Rehearsal
Troubleshooting common scenarios with Always On - A Dress Rehearsal
 
Enhancements to High Availability, Disaster Recovery and Replication
Enhancements to High Availability, Disaster Recovery and ReplicationEnhancements to High Availability, Disaster Recovery and Replication
Enhancements to High Availability, Disaster Recovery and Replication
 
Securing SQL Server with TLS 1.2
Securing SQL Server with TLS 1.2Securing SQL Server with TLS 1.2
Securing SQL Server with TLS 1.2
 
AlwaysOn Troubleshooting Improvements
AlwaysOn Troubleshooting ImprovementsAlwaysOn Troubleshooting Improvements
AlwaysOn Troubleshooting Improvements
 
Always On Availability Group Troubleshooting Ninja
Always On Availability Group Troubleshooting Ninja Always On Availability Group Troubleshooting Ninja
Always On Availability Group Troubleshooting Ninja
 
Debugging made easier with extended events
Debugging made easier with extended eventsDebugging made easier with extended events
Debugging made easier with extended events
 
You, SQL Server and PowerShell
You, SQL Server and PowerShellYou, SQL Server and PowerShell
You, SQL Server and PowerShell
 
SQL Saturday 511 - Troubleshooting made easier using extended events
SQL Saturday 511 - Troubleshooting made easier using extended eventsSQL Saturday 511 - Troubleshooting made easier using extended events
SQL Saturday 511 - Troubleshooting made easier using extended events
 
Performance Demystified for SQL Server on Azure Virtual Machines
Performance Demystified for SQL Server on Azure Virtual MachinesPerformance Demystified for SQL Server on Azure Virtual Machines
Performance Demystified for SQL Server on Azure Virtual Machines
 
Provisioning Azure Virtual Machines to run SQL Server
Provisioning Azure Virtual Machines to run SQL ServerProvisioning Azure Virtual Machines to run SQL Server
Provisioning Azure Virtual Machines to run SQL Server
 
Backup enhancements with SQL Server 2014
Backup enhancements with SQL Server 2014Backup enhancements with SQL Server 2014
Backup enhancements with SQL Server 2014
 
Troubleshooting SQL Server using Power Pivot and Power View
Troubleshooting SQL Server using Power Pivot and Power ViewTroubleshooting SQL Server using Power Pivot and Power View
Troubleshooting SQL Server using Power Pivot and Power View
 
SQL Server Tips and Tricks - Power
SQL Server Tips and Tricks - PowerSQL Server Tips and Tricks - Power
SQL Server Tips and Tricks - Power
 
SQL Server Scheduling Basics
SQL Server Scheduling BasicsSQL Server Scheduling Basics
SQL Server Scheduling Basics
 
System health session
System health sessionSystem health session
System health session
 
Microsoft TechEd India 2012 Backup Restore
Microsoft TechEd India 2012 Backup RestoreMicrosoft TechEd India 2012 Backup Restore
Microsoft TechEd India 2012 Backup Restore
 
Debugging the Deadlock for the Scheduler
Debugging the Deadlock for the SchedulerDebugging the Deadlock for the Scheduler
Debugging the Deadlock for the Scheduler
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 

SQL PASS 2017 - Building one million predictions per second using SQL Server 2017

  • 1. Accelerate insights from your DATA Amit Banerjee (@banerjeeamit) Senior Program Manager Microsoft Database Systems Building One Million Predictions Per Second Using SQL-R
  • 2. C:Users> whoami An affair with SQL Server for nearly a decade Was part of SQL Escalation Services and Premier Field Engineering team at Microsoft Now a Sr. Program Manager on the Microsoft Database Systems team focusing on performance, scale, HADR and data movement Speaker at SQL PASS 24HOP TechEd Virtual TechDays User Groups SQL Saturdays Dabble around with supportability tools and have contributed to SQL Backup Simulator SQLDIAG/PSSDIAG Manager and SQL Nexus Co-authored “Professional SQL Server 2012: Internals and Troubleshooting” and “Pro SQL Server on Azure” Own TroubleshootingSQL.com
  • 3. Data Science Process Bringing Analytics to Data Demo Optimization Tips Agenda
  • 4.
  • 5. Jack Henry A leading provider for banking solutions for credit unions across Americas In-memory OLTPColumnStore Age, Original Balance, Interest Rate, Loan Remaining Months, Credit Score 20M Vehicle Loans PowerBI DashboardIn-Database Analytics at Scale R Business User Prepare for analytics Store Predictions Visualize
  • 6. Deploying Loan Charge-off Prediction using HDInsight
  • 7. Using Machine Learning Services in SQL Server Bringing Analytics to the Data • Data already in SQL • Use T-SQL know-hows to do ETL • Use the power of in-memory OLTP and column store indexing to enhance speed of ETL • RevoScaleR package to provide parallelism and scale Making the data travel • Data sources not in SQL • Data sinks not in SQL • Complex ETL needed • Long running R script
  • 8. Using Python in SQL Server 2017 • Elimination of data movement • Easy deployment • Enterprise-grade performance and scale • Rich extensibility • Wide availability at no additional costs
  • 9. sp_execute_external EXEC sp_execute_external_script @language = N'R' , @script = N'iris_data <- iris;' , @input_data_1 = N'' , @output_data_1_name = N'iris_data' WITH RESULT SETS (("Sepal.Length" float not null, "Sepal.Width" float not null, "Petal.Length" float not null, "Petal.Width" float not null, "Species" varchar(100))); END; go sp_execute_external_script @language = N'language' , @script = N'script', @input_data_1 = ] 'input_data_1' [ , @input_data_1_name = ] N'input_data_1_name' ] [ , @output_data_1_name = 'output_data_1_name' ] [ , @parallel = 0 | 1 ] [ , @params = ] N'@parameter_name data_type [ OUT | OUTPUT ] [ ,...n ]' [ , @parameter1 = ] 'value1' [ OUT | OUTPUT ] [ ,...n ] [ WITH <execute_option> ] [;] <execute_option>::= { { RESULT SETS UNDEFINED } | { RESULT SETS NONE } | { RESULT SETS ( <result_sets_definition> ) } } <result_sets_definition> ::= { ( { column_name data_type [ COLLATE collation_name ] [ NULL | NOT NULL ] } [,...n ] ) | AS OBJECT [ db_name . [ schema_name ] . | schema_name . ] {table_name | view_name | table_valued_function_name } | AS TYPE [ schema_name.]table_type_name }
  • 10.
  • 11. Building a SQL Server scoring engine Fast Models Correct attribute selection Fast Ingestion Fast Reads Uniform resource usage
  • 12. Building a SQL Server scoring engine Fast Models Correct attribute selection Fast Ingestion Fast Reads Uniform resource usage
  • 13. Building a SQL Server scoring engine Fast Models Correct attribute selection Fast Ingestion Fast Reads Uniform resource usage
  • 14. Building a SQL Server scoring engine Fast Models Correct attribute selection Fast Ingestion Fast Reads Uniform resource usage
  • 15. SQL Server Tiger Team Building a SQL Server scoring engine Fast Models Correct attribute selection Fast Ingestion Fast Reads Uniform resource usage
  • 16. Deployment Using: • Triggers • Powershell scripts • SQL agent jobs
  • 17. Do you want to use this? A fully functional solution that can work on using SQL Server 2016 utilizing in- memory OLTP, columnstore indexes and SQL-R services A fully functional solution that can work on using HDInsight Spark with R- services
  • 19.
  • 20.
  • 21.
  • 22. Lets see this in action
  • 23. References • What’s new in Machine Learning Services in SQL Server • Loan Classification using SQL Server 2016 R Services • A walkthrough of Loan Classification using SQL Server 2016 R Services Using MicrosoftML in SQL-Server • GitHub SQL Server Samples • Quick Start template using SQL Server • Quick Start template using HDInsight • Performance tuning for R in SQL Server

Editor's Notes

  1. Use Case: Predict vehicle loan charge off (default) based on attributes like interest rate, credit scores etc Input: A subset of 8 million row of vehicle loan data in SQL Server - columns including branch location, customer profiles, interest rate, loan age etc.. Expected Result: Probability score of loans get charged off (Higher the score, higher the probability of loan get charged off) Build PowerBI report using probability score to show healthiness of vehicle loans across different branches Build what if scenario in business application