SQL Server R Services - interopevents.blob.core.windows.net · Microsoft R Client: lightweight...

Post on 28-May-2020

5 views 0 download

Transcript of SQL Server R Services - interopevents.blob.core.windows.net · Microsoft R Client: lightweight...

SQL Server R Services

Seth Mottaghinejad

Data Scientist

sethmott@microsoft.comwww.linkedin.com/in/sethmott/

1

What is a data scientist?

2

3

What do data scientists do?

4

5

What is R?

6

7

statistical softwaredata visualization toolkit

programming languageCRAN package system

8

9

10

11

What is Microsoft R?Microsoft R Open: faster R, same codeMicrosoft R Server: faster R + packages for big data analytics development anddeploymentMicrosoft R Client: lightweight version of MRS, same packages but used for developmentonly

With SQL Server R Services, Microsoft R Server is installed on the SQL Server and we caninteract with it using either MRS or MRC from a client.

12

What the data scientist saysR is great for prototyping

R has lots of packagesDeployment turnaround timeAccess to productionScale and performance

13

What the developer saysR is great for doing analytics

Not so much for anything elseConcerns about scale and performanceConcerns about integration in productionConcerns about production turnaround ﴾does not want to rewrite!﴿

14

What the DBA saysConcerns about moving data out of databaseConcerns about security and privacyConcerns about scale and performanceConcerns about data fragmentation

15

Two ways to run R in SQL ServerThere are two options to execute inside SQL

Data scientist scenario: Start from R GUI and execute R code remotely

Production scenario: Start from T‐SQL with embedded R script

16

Data scientist scenario ﴾best for development﴿

17

Production scenario ﴾best for operationalization﴿

18

Demo

19

the end

20

Thank you

Questions

21

22

23