Thank you Sponsors.

Slides:



Advertisements
Similar presentations
RELAIS Installation Monica Scannapieco – Luca Valentino (ISTAT – Software Development Service) Training on the job in Record linkage, Central Statistical.
Advertisements

Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Overview What is SQL Server? Creating databases Administration Security Backup.
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
SJSU CS157B Dr. Lee1  2004 Jenny Mitchell Two Useful Tools You Can’t Live Without by Jenny Mitchell SJSU CS157B Section PHP and MySQL.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
How a little code can help with support.. Chris Barba – Developer at Cimarex Energy Blog:
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Higher Grade Computing Studies 2. Languages and Environments Higher Computing Software Development S. McCrossan 1 Classification of Languages 1. Procedural.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Database Role Activity. DB Role and Privileges Worksheet.
SQL Server 2000 Sys Admin Jeremiah Curtis Engineering Services
Mirek Sztajno SQL Server Security PM
PHP Error Handling & Reporting. Error Handling Never allow a default error message or error number returned by the mysql_error() and mysql_errno() functions.
WEB SERVER SOFTWARE FEATURE SETS
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
Blog: R YOU READY FOR.
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
Overview of Security Investments in SQL Server 2016 and Azure SQL Database Jamey Johnston 1/15/2016Security Investments in SQL Server 2016 and Azure SQL.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
Machine Learning with SQL Server 2016 & R Dinesh Asanka Senior Architect – Technology VirtusaPolaris.
Connectivity in DataFlex 19.0
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
SQL 2016 R Services a.k.a. leveraging your local data lake
What Is The SSIS Catalog and Why Do I Care?
Shiny App with d3 data visualization
Miscellaneous Excel Combining Excel and Access.
What’s new in SQL Server 2017 for BI?
Data Virtualization Tutorial: Introduction to SQL Script
Project 1 Simple Socket Client.
World Wide Web policy.
Execution Planning for Success
Static Detection of Cross-Site Scripting Vulnerabilities
Bridging the Data Science and SQL Divide for Practitioners
Dynamic SQL: Writing Efficient Queries on the Fly
R For The SQL Developer Kevin Feasel Manager, Predictive Analytics
SQL Server Monitoring Overview
Introduction to R Programming with AzureML
DBAs vs Developers: JSON in SQL Server 2016
PHP / MySQL Introduction
PHP Introduction.
Relational databases, and more …
Tutorial 8 Objectives Continue presenting methods to import data into Access, export data from Access, link applications with data stored in Access, and.
DevOps Database Administration
ISC440: Web Programming 2 Server-side Scripting PHP 3
DevOps Database Administration
Moving advanced analytics to your SQL Server databases
Orchestration and data movement with Azure Data Factory v2
Dynamic SQL: Writing Efficient Queries on the Fly
DBAs vs Developers: JSON in SQL Server
Please thank our sponsors!
Chapter 15 Introduction to Rails.
Overview of big data tools
Developing a Model-View-Controller Component for Joomla Part 3
Filip Rodik Code For Croatia / Gong
Integrating REST API and SQL Server JSON Functions
Module 10: Implementing Managed Code in the Database
Tutorial 6 PHP & MySQL Li Xu
JAVA DATABaSE CONNECTIVITY
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
TN19-TCI: Integration and API management using TIBCO Cloud™ Integration
Boston Code Camp – April 2019 Jason Haley
Visual Data Flows – Azure Data Factory v2
Spark with R Martijn Tennekes
Presentation transcript:

Thank you Sponsors

Solving Common DBA Problems With R Steve Williams Solving Common DBA Problems With R

R Overview

General Overview Programming language that is an evolution of S Strengths are in statistics, anomaly detection, graphics, and data wrangling Extended easily using packages Integrated with the database engine in SQL 2016 Power BI can run R Scripts for visuals or data mod

Advantages of R Faster syntax to write than TSQL Faster performance for some things Whatever you are trying to do, someone can help Many great packages to use My favorites are: httr, tidyr, dplyr, readr, data.table, purrr, tibble, tidyjson, roxygen, shiny, lubridate, jsonlite, RODBC, RevoScaleR, stringi, stringr, magrittr, digest, devtools Run R code inside of SQL Server stored procs

Easy things to do in R Convert to and from JSON with very little syntax Manipulate strings fast and easy Transpose/Pivot Iterate over columns and rows Import files, Export Files Do things you would normally turn to SSIS for Read/write database Run your computer out of RAM

Intermediate/Advanced things to do in R Call an API and exchange data Write your own package Upload/Download documents with DocDb Execute JavaScript using the V8 package Run advanced scripts from Power BI Create a website (seriously! Search for “Shiny”) Join SQL Server, MySQL, and DocDb data Integrate Azure Key Vault with your systems Feed a data warehouse

Demo Time

My rules for creating Stored Procs with R You must return 1 data.frame from R code Exactly one data.frame Other data.frames can be written directly from R to Db Instead of returning it as a result set to the proc Other data can be returned to stored proc, but not another DF Your output must be named “OutputDataSet”, or you must change the expected name Put as little code as possible in the proc. Keep all of the coding work in Rstudio or RTVS You must install all necessary packages in the system library. I highly eliminating personal libraries on production servers. All stored procs are executed as one of the 20 logins (by default) that are created during install. They are all members of the SQLRUserGroup. Even if you are executing a stored proc, as yourself (domain login), it will run under one of these users. Common gotcha. Running a stored proc that runs R code, which then attempts to connect to a data source using a trusted connection/integrated security, it will NOT be using your login. This means that accessing things like DSNs or writing to a directory might require that you add appropriate permissions for these users. In this case, write access to one folder for input/output, and granting read permissions to the ODBC registry hive

Thanks for attending Q & A