Working with SQL Server for Linux Cross-Platform

Slides:



Advertisements
Similar presentations
Interfacing the JChem Suite outside of Java Jonathan Lee Solutions for Cheminformatics.
Advertisements

Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Creating a SharePoint App with Microsoft Access Services
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
| nectar.org.au NECTAR TRAINING Module 10 Beyond the Dashboard.
Trevor Sullivan Solution Architect Project Leadership Associates.
WEBMATRIX Microsoft Pranav Rastogi.
PHP on Windows Improvements in PHP-Microsoft Interoperability Brian Swan PHP Developer Outreach,
What’s new? Update on Netrics Matching Engine V4.0 and V4.1 Dave Chamberlain
1 PUPPET AND DSC. INTRODUCTION AND USAGE IN CONTINUOUS DELIVERY PROCESS. VIKTAR VEDMICH PAVEL PESETSKIY AUGUST 1, 2015.
How* to Win the #BestMicrosoftHack Shahed Chowdhuri Sr. Technical WakeUpAndCode.com *Hint: Use the Cloud.
| nectar.org.au NECTAR TRAINING Module 10 Beyond the Dashboard.
An Investigation into using a Document Management System Presented by: Bijal RanaSupervisor: John Ebden.
Installing IIS 7(.5). Web Platform Installer What’s New in IIS 7 Fast CGI (PHP!) Shared Configuration Automated App Pool Isolation Extensions PowerShell.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 13 A & B Programming Languages and the.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
ASP.NET WEB Applications. ASP.NET  Web application framework developed by Microsoft  Build dynamic data driven web applications and web services  Subset.
Bellevue College Cloud Seminars Learn: Cloud services Friday, March 4, 2016 Azure Virtual Machines Fawad Khan.
Windows Azure and iOS Chris Risner Windows Azure Technical Evangelist Microsoft
TEARING THE DOWN ing Jim Wooley Jim Wooley
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com Deploying Your Web Apps * aka ASP.NET 5 before RC1.
Eric Flamm Flamm Consulting, Inc.
Microsoft Connect /23/ :39 PM
SQL Server on Linux CTP 1.1 Florian
Open Source Research Project
CMIT100 Chapter 14 - Programming.
Microsoft List Schedule April – May 2016
Easily manage SQL everywhere from anywhere with SQL tools
Introduction to .NET Core
Easily manage SQL everywhere from anywhere with SQL Tools
Cloud Data platform (Cloud Application Development & Deployment)
The Transition to Modern Office Add-in Development
Azure CLI Deep Dive Neil Peterson Content Developer Microsoft.
SQL Server + PHP: What’s New
Microsoft Connect /2/2018 2:41 PM
Nano Server in the cloud - some real use cases to take away
Andrew Pruski SQL Server & Containers
PHP / MySQL Introduction
Using Access and the Web
Cloudy with a Chance of Data
SQL Server Client Tools 2018
Building Cross Platform PowerShell Modules
Using PowerShell with Python & SQL Server
SQL Server + Python Meet Bhagdev Program Manager.
Intro to SQL Operations Studio
Cloudy with a Chance of Data
dbatools! The reason to finally start learning and using Powershell
SharePoint 2019 Changes Point of View.
Automating reports with Python
dbatools - PowerShell and SQL Server Working Together
Data Security for Microsoft Azure
Using Visual Studio and VS Code for Embedded C/C++ Development
Microsoft Connect /1/2018 2:36 AM
dbatools! The reason to finally start learning and using Powershell
What's New in SharePoint Server 2019
Cross-Platform, Cloud and On-Premise Database Tool
TechEd /15/2019 8:08 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
EXPLORING THE SQL POWERSHELL MODULE
Office 365 Development.
Test and Verify Instances with DBAchecks
Cross-Platform, Cloud and On-Premise Database Tool
Gold Sponsors.
Rich Benner SQL Server Performance Richbenner.com.
1. Azure Data Explorer Azure Data Explorer enables rich data exploration over raw, structured, and semi-structured data delivering fast time to insight.
dbatools! The reason to finally start learning and using Powershell
Managing and monitoring SQL Server on Linux from the command line
Michelle Haarhues Keeping up with SSMS.
This is the slide shown before the presentation starts
The New Tool in Your Kit: Azure Data Studio
Extend Azure DevOps with a Custom PowerShell-based Pipeline Task
Presentation transcript:

Working with SQL Server for Linux Cross-Platform August 23, 2017 Maximo Trinidad

Agenda 1 2 3 4 5 Understanding Your Environment PowerShell and SQL Server 3 Python SQL Connectors 4 Questions 5 Reference Information

Understanding Your Environment

Top demand programming languages 3 https://www.techworm.net/2017/02/top-9-demand-programming-languages-2017.html SQL Java Python Javascript C++ C# Perl iOS PHP

Understanding Your Environment 4 Understanding Your Environment - Install component in both Windows and Linux - PowerShell Open Source - In Linux and Windows use Anaconda Python 3.6 - Anaconda include - Python Tcl/Tk & SQL Connectors - Use OneDrive - On Bash access (/mnt/c/Users/#username#/OneDrive) - On Linux access Windows shared folders

Understanding Your Environment 5 Understanding Your Environment - You're New to Linux - Get “Ubuntu” from Microsoft Store - Install "Ubuntu Desktop" - PowerShell - Python - Cross-Platform Editor - VS Code lightweight Multi-language editor - Other editors -Sublime -Brains PyCharm (Robust Python Editor Windows and Linux) *Use Windows Editors to create code

6 Windows 10

Understanding Your Environment 5 Understanding Your Environment - SQL Server 2017 on Linux - Version RC2 - Production Ready - SQL Agent Available - ODBC Connector available - Azure SQL ready - Use VS Code mssql extension No PowerShell Commands available Use PowerShell Core with either: SMO (availability coming soon –only works with Beta 2) Use non-SMO .Net System.Data

PowerShell and SQL Server 7 PowerShell and SQL Server - SQL Server PowerShell scripting - In Windows: (Windows PowerShell) - Two PS Modules available: SQLPS, SQLServer (2017) - Using SMO - In Linux, PowerShell Core using only SMO - In Windows, PowerShell Core SMO **not ready** - Python with PowerShell (for data collection, and Tasks automation) - Possibility of Cross-platform solutions - Take advantage of .NET objects in Linux

PowerShell and SQL Server 8 PowerShell and SQL Server

PowerShell and SQL Server 9 PowerShell and SQL Server

Connecting to SQL Server with Python 10 Connecting to SQL Server with Python Choose a Python version Use “sudo su; Update-Alternatives” command update-alternatives --list python - Two SQL Connectors - pyodbc - pymssql (not covered) - Connectors Behavior - pyodbc and pymssql can connect to - Windows local and Multi-instance SQLServer - Linux only single instance

11 Demo 1. Using you tools VS Code, PoweShell Core, Anaconda Python 3.6.x SSMS – Windows & Linux connectivity (** SQL Authentication only **) Mounting Shared folders Restore Database 2. Python 3.6 (Anaconda)* TestGuiRead2Gui.py TestSqlGui.py *Note: dos2unix –k *.* (text code converter win2linux format) 3. PowerShell Getting SQL Results Execute_nonSMO_sqlqry.ps1 PowerShellCore_SMO_Sample.ps1 4. Python/PowerShell Integration: SamplePoweShellPythonSQL3_nogui.ps1 Function Out-CsvToGridView.ps1

Reference Information 13 Reference Information PowerShell Open Source: https://github.com/PowerShell/PowerShell Windows PowerShell bugs use UserVoice: https://windowsserver.uservoice.com/forums/301869-powershell Python SQL Server ODBC connector (pyodbc): https://github.com/mkleehammer/pyodbc Python Microsoft SQL Server connector (pymssql): http://pymssql.org/en/stable/intro.html Bash for Windows 10: https://blogs.msdn.microsoft.com/commandline/learn-about-bash-on-windows-subsystem-for-linux/ https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/ Python 3.6 Anaconda in SQL Server 2017: https://blogs.technet.microsoft.com/dataplatforminsider/2017/04/19/python-in-sql-server-2017-enhanced-in-database-machine-learning/ Microsoft blog - MVP Award program Blog: https://blogs.msdn.microsoft.com/mvpawardprogram/2017/05/26/friday-five-may-26th/?wt.mc_id=DX_883076 https://blogs.msdn.microsoft.com/mvpawardprogram/2017/03/10/friday-five-march-10th/ https://blogs.msdn.microsoft.com/mvpawardprogram/2017/02/17/friday-five-feb-17th/ https://blogs.msdn.microsoft.com/mvpawardprogram/2016/12/23/friday-five-dec-23/

12 Questions

Contact information: Maximo Trinidad Email: max_trinidad@Hotmail.com Twitter: @maxtrinidad Blog: http://www.maxtblog.com