Using PowerShell with Python & SQL Server

Slides:



Advertisements
Similar presentations
JChem Web Services Server Jonathan Lee Solutions for Cheminformatics Technical Product Presentation.
Advertisements

Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
E-Commerce The technical side. LAMP Linux Linux Apache Apache MySQL MySQL PHP PHP All Open Source and free packages. Can be installed and run on most.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
CSS Class 6 Make image into a button Create button with button element Group related form elements Control tab order Process form data.
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.
WEBMATRIX Microsoft Pranav Rastogi.
PHP on Windows Improvements in PHP-Microsoft Interoperability Brian Swan PHP Developer Outreach,
By Bearzx Dive Into Web Introduction To WEB
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.
An Investigation into using a Document Management System Presented by: Bijal RanaSupervisor: John Ebden.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
XAMPP.
ASP.NET WEB Applications. ASP.NET  Web application framework developed by Microsoft  Build dynamic data driven web applications and web services  Subset.
TEARING THE DOWN ing Jim Wooley Jim Wooley
The Brenkoweb provides the excellent online programming tutorial for the programmer in various languages like as PHP, SQL, HTML, ASP, Javascript,
DreamFactory for Microsoft Azure Is an Open Source REST API Platform That Enables Mobilization of Data in Minutes across Frameworks and Storage Methods.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
Eric Flamm Flamm Consulting, Inc.
Microsoft Connect /23/ :39 PM
Open Source Research Project
Top 8 Best Programming Languages To Learn
SQL 2016 R Services a.k.a. leveraging your local data lake
Working with SQL Server for Linux Cross-Platform
Microsoft List Schedule April – May 2016
Tooling Breakout Session
Introduction and Principles
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
SQL Server + PHP: What’s New
Microsoft Connect /2/2018 2:41 PM
THE ARCHITECTURE AND FUNCTIONALITIES OF SELECTED MODULES.
Pemrograman V (PHP) “Introduction”
PHP / MySQL Introduction
Using Access and the Web
SQL Server Client Tools 2018
SQL Server Integration Services SSIS and PowerShell
SQL Server + Python Meet Bhagdev Program Manager.
Microsoft Build /8/2018 3:30 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Intro to SQL Operations Studio
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
dbatools! The reason to finally start learning and using Powershell
Automating reports with Python
SEEM4570 Tutorial 1 Android SDK + XCode SDK +
dbatools! The reason to finally start learning and using Powershell
EMSE 6574 – Programming for Analytics: Python 101 – Python Enviornments Joel Klein.
Package Management and Workflow Automation
What's New in SharePoint Server 2019
Cross-Platform, Cloud and On-Premise Database Tool
EXPLORING THE SQL POWERSHELL MODULE
Visual Studio Code for PowerShell
IntroductionToPHP Static vs. Dynamic websites
Cross-Platform, Cloud and On-Premise Database Tool
ENIAC – the first computer
Lab 1: Getting Started.
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.
Using Dbatools to Automate Database Migrations
Visual Studio 2008.
Top PHP Development Tools For PHP Developers By: iblinfotech.com iblinfotech.com.
Extend Azure DevOps with a Custom PowerShell-based Pipeline Task
SQL Server on Containers
Presentation transcript:

Using PowerShell with Python & SQL Server June 10, 2017 Maximo Trinidad

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

Understanding Your Environment 2 You’ve got to be kidding!

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 - Python 2.7 (By Default) or 3.x - Python Tcl/Tk packages - Python 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 - Go “Bash-On-Ubuntu-On-Windows” - 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 Demo 1

PowerShell and SQL Server 7 PowerShell and SQL Server - Connecting to SQL Server for scripting - Two ways: SQLPS module and SMO - Used only Windows Desktop (or Server) *Not possible on Linux systems - Access PowerShell from SSMS - Python with PowerShell for data collection - 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 Update-Alternatives” command # update-alternatives --list python - Two SQL Connectors - pyodbc - pymssql - Connectors Behavior - pyodbc and pymssql can connect to - Windows local and Multi-instance SQLServer - Linux only single instance

11 Demo 2 Connecting to SQL Server with PowerShell/Python.:

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 3.5.2 (both Windows and Linux): https://www.python.org/download/releases/3.2.5/ Python Tcl/Tk: http://www.tcl.tk/ 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