├── .gitignore ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── SECURITY.md ├── _config.yml ├── _includes ├── footer.html ├── google-analytics.html ├── head.html ├── header-menutop.html ├── header.html ├── home.html ├── partials │ ├── install_homebrew.md │ ├── install_sql_server_linux_rhel.md │ ├── install_sql_server_linux_sles.md │ ├── install_sql_server_linux_ubuntu.md │ ├── install_sql_server_mac.md │ ├── install_sql_server_windows.md │ ├── install_sql_server_windows_ML.md │ ├── install_sqlcmd_linux_rhel.md │ ├── install_sqlcmd_linux_sles.md │ ├── install_sqlcmd_linux_ubuntu.md │ ├── install_sqlcmd_mac.md │ ├── install_sqlcmd_windows.md │ └── step3 │ │ ├── mssql.md │ │ ├── note.md │ │ └── title.md ├── questions.html ├── resources.html └── scripts.html ├── _layouts ├── default-menutop.html ├── default.html ├── home.html ├── page-steps.html └── page.html ├── _sass ├── base │ ├── _fonts.scss │ ├── _functions.scss │ ├── _globals.scss │ ├── _states.scss │ ├── _utilities.scss │ ├── _variables.scss │ ├── functions │ │ └── _image.scss │ └── mixins │ │ ├── _fonts.scss │ │ └── _medias.scss ├── components │ ├── _disqus.scss │ ├── _footer.scss │ ├── _header.scss │ ├── _home.scss │ ├── _main.scss │ ├── _menu.scss │ ├── _menutop.scss │ ├── _new.scss │ ├── _page-steps.scss │ ├── _questions.scss │ └── _resources.scss ├── minima.scss └── vendor │ ├── _normalize.scss │ ├── _prism.scss │ └── _reset.scss ├── application ├── __init__.pyc └── views.pyc ├── assets ├── images │ ├── Thumbs.db │ ├── VSCode_Extension.png │ ├── award.png │ ├── bg.png │ ├── channel9.png │ ├── hero-image.png │ ├── hero-image_sub.png │ ├── menu │ │ ├── csharp.png │ │ ├── java.png │ │ ├── node.png │ │ ├── php.png │ │ ├── python.png │ │ └── r-logo.png │ ├── micro-logo.png │ ├── newsletter.png │ └── r-logo.png └── scripts │ ├── prism.js │ └── steps.js ├── index.md └── pages ├── R ├── customerclustering │ ├── step-1.md │ ├── step-2.md │ └── step-3.md └── rentalprediction │ ├── step-1.md │ ├── step-2.md │ └── step-3.md └── python ├── customerclustering ├── step-1.md ├── step-2.md └── step-3.md └── rentalprediction ├── step-1.md ├── step-2.md └── step-3.md /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | artifacts/ 46 | 47 | *_i.c 48 | *_p.c 49 | *_i.h 50 | *.ilk 51 | *.meta 52 | *.obj 53 | *.pch 54 | *.pdb 55 | *.pgc 56 | *.pgd 57 | *.rsp 58 | *.sbr 59 | *.tlb 60 | *.tli 61 | *.tlh 62 | *.tmp 63 | *.tmp_proj 64 | *.log 65 | *.vspscc 66 | *.vssscc 67 | .builds 68 | *.pidb 69 | *.svclog 70 | *.scc 71 | 72 | # Chutzpah Test files 73 | _Chutzpah* 74 | 75 | # Visual C++ cache files 76 | ipch/ 77 | *.aps 78 | *.ncb 79 | *.opendb 80 | *.opensdf 81 | *.sdf 82 | *.cachefile 83 | *.VC.db 84 | *.VC.VC.opendb 85 | 86 | # Visual Studio profiler 87 | *.psess 88 | *.vsp 89 | *.vspx 90 | *.sap 91 | 92 | # TFS 2012 Local Workspace 93 | $tf/ 94 | 95 | # Guidance Automation Toolkit 96 | *.gpState 97 | 98 | # ReSharper is a .NET coding add-in 99 | _ReSharper*/ 100 | *.[Rr]e[Ss]harper 101 | *.DotSettings.user 102 | 103 | # JustCode is a .NET coding add-in 104 | .JustCode 105 | 106 | # TeamCity is a build add-in 107 | _TeamCity* 108 | 109 | # DotCover is a Code Coverage Tool 110 | *.dotCover 111 | 112 | # NCrunch 113 | _NCrunch_* 114 | .*crunch*.local.xml 115 | nCrunchTemp_* 116 | 117 | # MightyMoose 118 | *.mm.* 119 | AutoTest.Net/ 120 | 121 | # Web workbench (sass) 122 | .sass-cache/ 123 | 124 | # Installshield output folder 125 | [Ee]xpress/ 126 | 127 | # DocProject is a documentation generator add-in 128 | DocProject/buildhelp/ 129 | DocProject/Help/*.HxT 130 | DocProject/Help/*.HxC 131 | DocProject/Help/*.hhc 132 | DocProject/Help/*.hhk 133 | DocProject/Help/*.hhp 134 | DocProject/Help/Html2 135 | DocProject/Help/html 136 | 137 | # Click-Once directory 138 | publish/ 139 | 140 | # Publish Web Output 141 | *.[Pp]ublish.xml 142 | *.azurePubxml 143 | # TODO: Comment the next line if you want to checkin your web deploy settings 144 | # but database connection strings (with potential passwords) will be unencrypted 145 | *.pubxml 146 | *.publishproj 147 | 148 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 149 | # checkin your Azure Web App publish settings, but sensitive information contained 150 | # in these scripts will be unencrypted 151 | PublishScripts/ 152 | 153 | # NuGet Packages 154 | *.nupkg 155 | # The packages folder can be ignored because of Package Restore 156 | **/packages/* 157 | # except build/, which is used as an MSBuild target. 158 | !**/packages/build/ 159 | # Uncomment if necessary however generally it will be regenerated when needed 160 | #!**/packages/repositories.config 161 | # NuGet v3's project.json files produces more ignoreable files 162 | *.nuget.props 163 | *.nuget.targets 164 | 165 | # Microsoft Azure Build Output 166 | csx/ 167 | *.build.csdef 168 | 169 | # Microsoft Azure Emulator 170 | ecf/ 171 | rcf/ 172 | 173 | # Windows Store app package directories and files 174 | AppPackages/ 175 | BundleArtifacts/ 176 | Package.StoreAssociation.xml 177 | _pkginfo.txt 178 | 179 | # Visual Studio cache files 180 | # files ending in .cache can be ignored 181 | *.[Cc]ache 182 | # but keep track of directories ending in .cache 183 | !*.[Cc]ache/ 184 | 185 | # Others 186 | ClientBin/ 187 | ~$* 188 | *~ 189 | *.dbmdl 190 | *.dbproj.schemaview 191 | *.pfx 192 | *.publishsettings 193 | node_modules/ 194 | orleans.codegen.cs 195 | 196 | # Since there are multiple workflows, uncomment next line to ignore bower_components 197 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 198 | #bower_components/ 199 | 200 | # RIA/Silverlight projects 201 | Generated_Code/ 202 | 203 | # Backup & report files from converting an old project file 204 | # to a newer Visual Studio version. Backup files are not needed, 205 | # because we have git ;-) 206 | _UpgradeReport_Files/ 207 | Backup*/ 208 | UpgradeLog*.XML 209 | UpgradeLog*.htm 210 | 211 | # SQL Server files 212 | *.mdf 213 | *.ldf 214 | 215 | # Business Intelligence projects 216 | *.rdl.data 217 | *.bim.layout 218 | *.bim_*.settings 219 | 220 | # Microsoft Fakes 221 | FakesAssemblies/ 222 | 223 | # GhostDoc plugin setting file 224 | *.GhostDoc.xml 225 | 226 | # Node.js Tools for Visual Studio 227 | .ntvs_analysis.dat 228 | 229 | # Visual Studio 6 build log 230 | *.plg 231 | 232 | # Visual Studio 6 workspace options file 233 | *.opt 234 | 235 | # Visual Studio LightSwitch build output 236 | **/*.HTMLClient/GeneratedArtifacts 237 | **/*.DesktopClient/GeneratedArtifacts 238 | **/*.DesktopClient/ModelManifest.xml 239 | **/*.Server/GeneratedArtifacts 240 | **/*.Server/ModelManifest.xml 241 | _Pvt_Extensions 242 | 243 | # Paket dependency manager 244 | .paket/paket.exe 245 | paket-files/ 246 | 247 | # FAKE - F# Make 248 | .fake/ 249 | 250 | # JetBrains Rider 251 | .idea/ 252 | *.sln.iml 253 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | ruby "2.2.2" 3 | gem "kramdown" 4 | gem "bundler" 5 | gem "jekyll", "3.4.3" 6 | gem "jekyll-redirect-from" 7 | gem "minima", "2.1.1" 8 | gem "jekyll-feed" 9 | # Hello! This is where you manage which Jekyll version is used to run. 10 | # When you want to use a different version, change it below, save the 11 | # file and run `bundle install`. Run Jekyll with `bundle exec`, like so: 12 | # 13 | # bundle exec jekyll serve 14 | # 15 | # This will help ensure the proper Jekyll version is running. 16 | # Happy Jekylling! 17 | -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | addressable (2.5.1) 5 | public_suffix (~> 2.0, >= 2.0.2) 6 | colorator (1.1.0) 7 | ffi (1.9.18) 8 | ffi (1.9.18-x64-mingw32) 9 | forwardable-extended (2.6.0) 10 | jekyll (3.4.3) 11 | addressable (~> 2.4) 12 | colorator (~> 1.0) 13 | jekyll-sass-converter (~> 1.0) 14 | jekyll-watch (~> 1.1) 15 | kramdown (~> 1.3) 16 | liquid (~> 3.0) 17 | mercenary (~> 0.3.3) 18 | pathutil (~> 0.9) 19 | rouge (~> 1.7) 20 | safe_yaml (~> 1.0) 21 | jekyll-feed (0.9.2) 22 | jekyll (~> 3.3) 23 | jekyll-redirect-from (0.12.1) 24 | jekyll (~> 3.3) 25 | jekyll-sass-converter (1.5.0) 26 | sass (~> 3.4) 27 | jekyll-watch (1.5.0) 28 | listen (~> 3.0, < 3.1) 29 | kramdown (1.13.2) 30 | liquid (3.0.6) 31 | listen (3.0.8) 32 | rb-fsevent (~> 0.9, >= 0.9.4) 33 | rb-inotify (~> 0.9, >= 0.9.7) 34 | mercenary (0.3.6) 35 | minima (2.1.0) 36 | jekyll (~> 3.3) 37 | pathutil (0.14.0) 38 | forwardable-extended (~> 2.6) 39 | public_suffix (2.0.5) 40 | rb-fsevent (0.9.8) 41 | rb-inotify (0.9.8) 42 | ffi (>= 0.5.0) 43 | rouge (1.11.1) 44 | safe_yaml (1.0.4) 45 | sass (3.4.23) 46 | thread_safe (0.3.6) 47 | tzinfo (1.2.3) 48 | thread_safe (~> 0.1) 49 | tzinfo-data (1.2017.2) 50 | tzinfo (>= 1.0.0) 51 | 52 | PLATFORMS 53 | ruby 54 | x64-mingw32 55 | 56 | DEPENDENCIES 57 | jekyll (= 3.4.3) 58 | jekyll-feed (~> 0.6) 59 | jekyll-redirect-from 60 | minima (~> 2.0) 61 | tzinfo-data 62 | 63 | RUBY VERSION 64 | ruby 2.3.3p222 65 | 66 | BUNDLED WITH 67 | 1.14.6 68 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # SQL Server Tutorials Documentation Contributor Guide 3 | You've found the GitHub repository that houses the source for the SQL Server ML tutorials that is published on [http://aka.ms/mlsqldev](aka.ms/mlsqldev). 4 | 5 | 6 | ## Contribute to SQL Server tutorials 7 | Firstly, thank you for your interest in contributing to our tutorials. We use Jekyll + Markdown for our documentation. To contribute, simply make a PR with changes in the Markdown files/new Markdown files. We will review it within 24 hours. 8 | 9 | ## Repository organization 10 | The content in the repository follows the standard Jekyll folder structure: 11 | 12 | ### \pages 13 | The *\pages* folder contains the documentation articles formatted as markdown files with an *.md* extension for each tutorial. 14 | 15 | ### \_includes 16 | This folder contains reusable content sections to be included in one or more articles. This folder also contains base html files that are used accross the site. 17 | 18 | ### \_sass 19 | This folder contains the css files used the style the website 20 | 21 | ### \assets 22 | This folder contains images and js scripts used in the tutorials website 23 | 24 | 25 | ## Use GitHub, Git, and this repository 26 | For information about how to contribute, how to use the GitHub UI to contribute small changes, and how to fork and clone the repository for more significant contributions, see [Install and set up tools for authoring in GitHub](contributor-guide/tools-and-setup.md). 27 | 28 | If you install GitBash and choose to work locally, the steps for creating a new local working branch, making changes, and submitting the changes back to the main branch are listed in [Git commands for creating a new article or updating an existing article](contributor-guide/git-commands-for-master.md) 29 | 30 | ### Branches 31 | We recommend that you create local working branches that target a specific scope of change. Each branch should be limited to a single concept/article both to streamline work flow and reduce the possibility of merge conflicts. The following efforts are of the appropriate scope for a new branch: 32 | 33 | * A new article (and associated images) 34 | * Spelling and grammar edits on an article. 35 | * Applying a single formatting change across a large set of articles (e.g. new copyright footer). 36 | 37 | ## How to use markdown to format your topic 38 | All the articles in this repository use GitHub flavored markdown. Here's a list of resources. 39 | 40 | * [Markdown basics](https://help.github.com/articles/markdown-basics/) 41 | * [Printable markdown cheatsheet](./contributor-guide/media/documents/markdown-cheatsheet.pdf?raw=true) 42 | 43 | ## Article metadata 44 | Article metadata enables certain functionalities, such as author attribution, contributor attribution, breadcrumbs, article descriptions, and SEO optimizations as well as reporting Microsoft uses to evaluate the performance of the content. So, the metadata is important! [Here's the guidance for making sure your metadata is done right](contributor-guide/article-metadata.md). 45 | 46 | ## Microsoft Open Source Code of Conduct 47 | 48 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). 49 | For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. 50 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Security 4 | 5 | Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). 6 | 7 | If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below. 8 | 9 | ## Reporting Security Issues 10 | 11 | **Please do not report security vulnerabilities through public GitHub issues.** 12 | 13 | Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report). 14 | 15 | If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey). 16 | 17 | You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc). 18 | 19 | Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: 20 | 21 | * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) 22 | * Full paths of source file(s) related to the manifestation of the issue 23 | * The location of the affected source code (tag/branch/commit or direct URL) 24 | * Any special configuration required to reproduce the issue 25 | * Step-by-step instructions to reproduce the issue 26 | * Proof-of-concept or exploit code (if possible) 27 | * Impact of the issue, including how an attacker might exploit the issue 28 | 29 | This information will help us triage your report more quickly. 30 | 31 | If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs. 32 | 33 | ## Preferred Languages 34 | 35 | We prefer all communications to be in English. 36 | 37 | ## Policy 38 | 39 | Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd). 40 | 41 | 42 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | # Site settings 2 | # Access it in the templates via {{ site.myvariable }}. 3 | title: Get Started with SQL Server Machine Learning Services 4 | description: > 5 | Get Started with SQL Server Machine Learning Services 6 | url: "https://microsoft.github.io/sql-ml-tutorials/" 7 | 8 | disqus: 9 | shortname: sqlchoice 10 | 11 | gitter: https://gitter.im/Microsoft/mssql-developers 12 | 13 | steps: 14 | 1: Set up your environment 15 | 2: Create your ML script using $$ 16 | 3: Deploy your ML script with SQL Server 17 | 18 | menu: 19 | R: 20 | logo: r-logo.png 21 | pages: 22 | Predict ski rentals: R/rentalprediction 23 | Perform customer clustering: R/customerclustering 24 | 25 | Python: 26 | logo: python.png 27 | pages: 28 | Predict ski rentals: python/rentalprediction 29 | Perform customer clustering*: python/customerclustering 30 | 31 | 32 | resources: 33 | sqlserver-R: 34 | pre: Check out what's new with 35 | text: SQL Server + R on Channel 9 36 | link: https://channel9.msdn.com/Events/Connect/2016/151 37 | condition: R 38 | sqlserver-csharp: 39 | pre: Check out what's new with 40 | text: SQL Server + C# on Channel 9 41 | link: https://channel9.msdn.com/Events/Connect/2016/151 42 | condition: C# 43 | sqlserver-java: 44 | pre: Check out what's new with 45 | text: SQL Server + Java on Channel 9 46 | link: https://channel9.msdn.com/Events/Connect/2016/152 47 | condition: Java 48 | sqlserver-node: 49 | pre: Check out what's new with 50 | text: SQL Server + Node.js on Channel 9 51 | link: https://channel9.msdn.com/Events/Connect/2016/160 52 | condition: Node.js 53 | sqlserver-php: 54 | pre: Check out what's new with 55 | text: SQL Server + PHP on Channel 9 56 | link: https://channel9.msdn.com/Events/Connect/2016/182 57 | condition: PHP 58 | sqlserver-py: 59 | pre: Check out what's new with 60 | text: SQL Server + Python on Channel 9 61 | link: https://channel9.msdn.com/Events/Connect/2016/189 62 | condition: Python 63 | github: 64 | pre: Browse more SQL Server code samples on our 65 | text: GitHub repository 66 | link: https://github.com/Microsoft/sql-server-samples/tree/master/samples/features 67 | sql17: 68 | pre: Learn more about 69 | text: SQL Server 2017 70 | link: https://www.microsoft.com/en-us/sql-server/sql-server-2017 71 | sourcecodepy: 72 | pre: Get the sample code for this tutorial 73 | text: here 74 | link: https://github.com/Microsoft/sql-server-samples/tree/master/samples/features/machine-learning-services/python/getting-started/rental-prediction 75 | condition: Python 76 | sourcecodeR: 77 | pre: Get the sample code for this tutorial 78 | text: here 79 | link: https://github.com/Microsoft/sql-server-samples/tree/master/samples/features/r-services/getting-started 80 | condition: R 81 | 82 | # Build settings 83 | markdown: kramdown 84 | theme: minima # we are extending it 85 | exclude: 86 | - Gemfile 87 | - Gemfile.lock 88 | - README.md 89 | 90 | gems: 91 | - jekyll-redirect-from 92 | -------------------------------------------------------------------------------- /_includes/footer.html: -------------------------------------------------------------------------------- 1 | 22 | -------------------------------------------------------------------------------- /_includes/google-analytics.html: -------------------------------------------------------------------------------- 1 | 2 | 40 | -------------------------------------------------------------------------------- /_includes/head.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 |6 | Happy to help! You can find us on GitHub, MSDN Forums, and StackOverflow. We also monitor the #SQLServerDev hashtag on Twitter. 7 |
8 |