Stéphane Fréchette
Data Platform Solution Architect @ Microsoft
twitter: @sfrechette | blog: stephanefrechette.com
A must read...
Install Linux on a physical machine or a virtual machine (VM)
Or create and use a pre-configured Linux VM in Azure. There is also a VM image with SQL Server vNext CTP2.0 already installed, see Create a Linux SQL Server 2017 virtual machine with the Azure portal
SQL Server on Linux
SQL Server on Linux
sqlcmd: Command-line query utility
bcp: Bulk import-export utility
SQL Server on Linux
Run scheduled SQL Server jobs
SQL Server on Linux
full-text queries against character-based data
SQL Server on Linux
SQL Server on Linux
# On your Linux box, open a command terminal
# Run sqlcmd with parameters for your SQL Server name (-S), the user name (-U), and the password (-P)
# The following command connects to the local SQL Server instance (localhost) on Linux
sqlcmd -S localhost -U SA -P '<YourPassword>'
# Connect to a remote instance, specify the machine name or IP address for the -S parameter
sqlcmd -S 192.222.2.222 -U SA -P '<YourPassword>'
SQL Server on Linux
--Returns the name of all of the databases
SELECT Name from sys.Databases;
GO
--Create a database using the SQL Server default settings
CREATE DATABASE Sandbox;
GO
--Use the database
USE Sandbox;
GO
--Create a table in the current database
CREATE TABLE product (id INT, name NVARCHAR(50), quantity INT);
GO
--Insert some data
INSERT INTO product VALUES (1, 'Bottle', 250);
INSERT INTO product VALUES (2, 'Hat', 95);
INSERT INTO product VALUES (3, 'Shirt', 128);
GO
--Select from the table
SELECT * FROM product WHERE quantity > 100;
--End your sqlcmd session, type QUIT
QUIT
SQL Server on Linux
SQL Server on Linux
SQL Server on Linux
SQL Server on Linux
SQL Server on Linux
SQL Server on Linux
SQL Server on Linux
Support high-availability and disaster recovery
SQL Server on Linux
SQL Server on Linux currently has the following limitations:
Get started with security features of SQL Server on Linux
SQL Server on Linux
Not unique or specific to Linux, but worth exploring:
(Works in SQL Server on Linux!)
SQL Server on Linux
SQL Server on Linux offers a broader range of choice for all organizations, not just those who want to run SQL on Windows. It enables SQL Server to run in more private, public, and hybrid cloud ecosystems, to be used by developers regardless of programming languages, frameworks or tools.
SQL Server on Linux
SQL Server on Linux