Skip to content

Commit 0dfe82e

Browse files
author
Steve Stein
authored
Merge pull request #3732 from yualan/carbon-alayu
modified quickstarts
2 parents 77d26e1 + 96e9eb1 commit 0dfe82e

3 files changed

Lines changed: 33 additions & 53 deletions

File tree

docs/carbon/get-started-sql-database.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,11 @@ This quickstart demonstrates how to use Carbon to connect to an Azure SQL databa
2121
This quickstart uses as its starting point the resources created in one of these quick starts:
2222

2323
- [Create DB - Portal](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-get-started-portal)
24-
- [Create DB - CLI](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-get-started-cli.md)
25-
- [Create DB - PowerShell](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-get-started-powershell.md)
24+
- [Create DB - CLI](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-get-started-cli)
25+
- [Create DB - PowerShell](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-get-started-powershell)
2626

2727
Before you start, install Carbon by following [these directions](download.md).
2828

29-
## Configure Carbon
30-
31-
### **Mac OS**
32-
For macOS, you need to install OpenSSL which is a prerequisite for DotNet Core that mssql extension uses. Open your terminal and enter the following commands to install **brew** and **OpenSSL**.
33-
34-
```bash
35-
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
36-
brew update
37-
brew install openssl
38-
mkdir -p /usr/local/lib
39-
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
40-
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
41-
```
42-
43-
### **Linux**
44-
45-
No special configuration needed.
46-
47-
### **Windows**
48-
49-
No special configuration needed.
50-
5129
## SQL server connection information
5230

5331
Get the connection information needed to connect to the Azure SQL database. You will need the fully qualified server name, database name, and login information in the next procedures.

docs/carbon/get-started-sql-dw.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,6 @@ To use this tutorial, you need:
2323
* Install Carbon by following [these directions](download.md).
2424
* The fully qualified SQL server name. To find this, see [Connect to SQL Data Warehouse](https://docs.microsoft com/en-us/azure/sql-data-warehouse/sql-data-warehouse-connect-overview).
2525

26-
## Configure Carbon
27-
28-
### **Mac OS**
29-
For macOS, you need to install OpenSSL which is a prerequisite for DotNet Core that mssql extension uses. Open your terminal and enter the following commands to install **brew** and **OpenSSL**.
30-
31-
```bash
32-
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
33-
brew update
34-
brew install openssl
35-
mkdir -p /usr/local/lib
36-
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
37-
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
38-
```
39-
40-
### **Linux**
41-
42-
No special configuration needed.
43-
44-
### **Windows**
45-
46-
No special configuration needed.
47-
4826
## SQL server connection information
4927

5028
Get the connection information needed to connect to the Azure SQL Data Warehouse. You will need the fully qualified server name, database name, and login information in the next procedures.

docs/carbon/get-started-sql-server.md

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Connect and query SQL Server using Carbon on Windows| Microsoft Docs
2+
title: Connect and query SQL Server using Carbon | Microsoft Docs
33
description: Use Carbon to connect to a SQL Server and run a query
44
author: yualan
55
ms.author: alayu
@@ -13,24 +13,48 @@ ms.topic: quickstart
1313
ms.date: 10/01/2017
1414
---
1515

16-
# Connect and query SQL Server using Carbon on Windows
16+
# Connect and query SQL Server using Carbon
1717
This topic shows how to get started using Carbon with SQL Server databases, and this Quickstart should take about five minutes.
1818

1919
## Prerequisites
20-
Before starting this quickstart, you must have access to a running SQL Server instance. If you don't have it, [download SQL Server 2017 Developer Edition for Windows](https://go.microsoft.com/fwlink/?linkid=853016).
20+
21+
### Windows
22+
Before starting this quickstart, you must have access to a running SQL Server instance. If you don't have it, [download SQL Server 2017 Developer Edition for Windows](https://www.microsoft.com/en-us/sql-server/sql-server-downloads). **Please remember your username and password.**
2123

2224
To install Carbon with Windows, follow [these directions](download.md#get-carbon-for-windows).
2325

26+
### macOS
27+
- Before starting this quickstart, please download [Docker](https://docs.docker.com/docker-for-mac/install/#download-docker-for-mac).
28+
29+
- You will need access to a running SQL Server instance. On macOS, we will install SQL Server on Docker. Please [follow these instructions to download SQL Server on Docker](https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker). Follow the steps up to "Create and Query Data." Please remember your username and password.
30+
31+
- To install Carbon with macOS, follow [these directions](download.md#get-carbon-for-macos).
32+
33+
### Linux
34+
Before starting this quickstart, you must have access to a running SQL Server instance. If you don't have it, [download SQL Server 2017 Developer Edition on Linux](https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-overview#install).
35+
**Note:** You only need to follow the steps up to "Create and Query Data", and please make sure you remember your SQL Login and Password that you will have setup after following these tutorials.
36+
37+
To install Carbon with Linux, follow [these directions](download.md#get-carbon-for-linux).
38+
2439
## Connect to a server
25-
1. When first loading Carbon, a connection page should be displayed. If not, click the **New Connection** icon on the top left.
40+
1. If you do not have a SQL Server instance to connect to, run the following command on docker (requirement for macOS prerequisite).
41+
```bash
42+
docker run --name mssql-tutorial -d -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=SqlDevOps2017" -e "MSSQL_PID=Developer" -p "1433:1433" microsoft/mssql-server-linux:latest
43+
```
44+
45+
2. When first loading Carbon, a connection page should be displayed. If not, click the **New Connection** icon on the top left.
2646

2747
![New Connection Icon](media/get-started-sql-server/new-connection-icon.png)
2848

29-
2. For this tutorial, fill the fields as follows:
49+
3. Windows Authentication is fully supported. For this tutorial, we will use SQL Login authentication type. Please fill the fields as follows:
3050

3151
**Server Name:** localhost
3252

33-
**Authentication Type:** Windows Authentication
53+
**Authentication Type:** SQL Login
54+
55+
**User name:** User name for SQL Server
56+
57+
**Password:** Password for SQL Server
3458

3559
**Database Name:** (leave it blank)
3660

@@ -118,7 +142,7 @@ View an existing, built-in widget through the dashboard.
118142
> [Apply modern code flow using Carbon](tutorial-modern-code-flow-sql-server.md)
119143
120144
> [!div class="nextstepaction"]
121-
> [Monitor your SQL Server databases using Carbon](tutorial-monitoring-sql-server.md)
145+
> [Monitor your SQL Server databases using Carbon](tutorial-qds-sql-server.md)
122146
123147
> [!div class="nextstepaction"]
124148
> [Backup and restore your SQL Server databases using Carbon](tutorial-backup-restore-sql-server.md)

0 commit comments

Comments
 (0)