Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 7c99e8b

Browse files
committed
Merge branch 'release-dallas' of https://github.com/MicrosoftDocs/sql-docs-pr into cardinality
2 parents 4e12faa + 723d3a6 commit 7c99e8b

161 files changed

Lines changed: 6548 additions & 2353 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openpublishing.redirection.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41190,11 +41190,6 @@
4119041190
"redirect_url": "/sql/big-data-cluster/view-cluster-status#big-data-clusters-troubleshooting-resources",
4119141191
"redirect_document_id": true
4119241192
},
41193-
{
41194-
"source_path": "docs/big-data-cluster/release-notes-cumulative-update-16.md",
41195-
"redirect_url": "/sql/big-data-cluster/release-notes-big-data-cluster",
41196-
"redirect_document_id": false
41197-
},
4119841193
{
4119941194
"source_path": "docs/big-data-cluster/configure-cluster.md",
4120041195
"redirect_url": "/sql/big-data-cluster/configure-bdc-overview",

azure-sql/database/automated-backups-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ To view backup and data storage metrics in the Azure portal, follow these steps:
538538
Backup storage consumption for a Hyperscale database depends on the retention period, choice of region, backup storage redundancy and workload type. Consider some of the following tuning techniques to reduce your backup storage consumption for a Hyperscale database:
539539

540540
- Reduce the [backup retention period](#change-the-short-term-retention-policy-using-the-azure-portal) to the minimum possible for your needs.
541-
- Avoid doing large write-operations, such as index maintenance, more frequently than you need to. For index maintenance recommendations, see [Optimize index maintenance to improve query performance and reduce resource consumption](/sql/relational-databases/indexes/reorganize-and-rebuild-indexes.md).
541+
- Avoid doing large write-operations, such as index maintenance, more frequently than you need to. For index maintenance recommendations, see [Optimize index maintenance to improve query performance and reduce resource consumption](/sql/relational-databases/indexes/reorganize-and-rebuild-indexes).
542542
- For large data-load operations, consider using data compression when appropriate.
543543
- Use the `tempdb` database instead of permanent tables in your application logic to store temporary results and/or transient data.
544544
- Use locally-redundant or zone-redundant backup storage when geo-restore capability is unnecessary (for example: dev/test environments).

azure-sql/database/connect-github-actions-sql-db.md

Lines changed: 121 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: sql-database
77
ms.subservice: connect
88
ms.topic: quickstart
99
ms.author: jukullam
10-
ms.date: 05/05/2021
10+
ms.date: 05/10/2022
1111
ms.custom: github-actions-azure, mode-other
1212
ms.reviewer: kendralittle, mathoma
1313
---
@@ -18,7 +18,7 @@ Get started with [GitHub Actions](https://docs.github.com/en/actions) by using a
1818

1919
## Prerequisites
2020

21-
You will need:
21+
You will need:
2222
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
2323
- A GitHub repository with a dacpac package (`Database.dacpac`). If you don't have a GitHub account, [sign up for free](https://github.com/join).
2424
- An Azure SQL Database.
@@ -33,11 +33,13 @@ The file has two sections:
3333

3434
|Section |Tasks |
3535
|---------|---------|
36-
|**Authentication** | 1. Define a service principal. <br /> 2. Create a GitHub secret. |
36+
|**Authentication** | 1.1. Generate deployment credentials. |
3737
|**Deploy** | 1. Deploy the database. |
3838

3939
## Generate deployment credentials
4040

41+
# [Service principal](#tab/userlevel)
42+
4143
You can create a [service principal](/azure/active-directory/develop/app-objects-and-service-principals) with the [az ad sp create-for-rbac](/cli/azure/ad/sp#az-ad-sp-create-for-rbac) command in the [Azure CLI](/cli/azure/). Run this command with [Azure Cloud Shell](https://shell.azure.com/) in the Azure portal or by selecting the **Try it** button.
4244

4345
Replace the placeholders `server-name` with the name of your SQL server hosted on Azure. Replace the `subscription-id` and `resource-group` with the subscription ID and resource group connected to your SQL server.
@@ -63,6 +65,27 @@ The output is a JSON object with the role assignment credentials that provide ac
6365
> [!IMPORTANT]
6466
> It is always a good practice to grant minimum access. The scope in the previous example is limited to the specific server and not the entire resource group.
6567
68+
# [OpenID Connect](#tab/openid)
69+
70+
You need to provide your application's **Client ID**, **Tenant ID**, and **Subscription ID** to the login action. These values can either be provided directly in the workflow or can be stored in GitHub secrets and referenced in your workflow. Saving the values as GitHub secrets is the more secure option.
71+
72+
1. Open your GitHub repository and go to **Settings**.
73+
74+
1. Select **Settings > Secrets > New secret**.
75+
76+
1. Create secrets for `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_SUBSCRIPTION_ID`. Use these values from your Active Directory application for your GitHub secrets:
77+
78+
|GitHub Secret | Active Directory Application |
79+
|---------|---------|
80+
|AZURE_CLIENT_ID | Application (client) ID |
81+
|AZURE_TENANT_ID | Directory (tenant) ID |
82+
|AZURE_SUBSCRIPTION_ID | Subscription ID |
83+
84+
1. Save each secret by selecting **Add secret**.
85+
86+
---
87+
88+
6689
## Copy the SQL connection string
6790

6891
In the Azure portal, go to your Azure SQL Database and open **Settings** > **Connection strings**. Copy the **ADO.NET** connection string. Replace the placeholder values for `your_database` and `your_password`. The connection string will look similar to this output.
@@ -75,6 +98,8 @@ You'll use the connection string as a GitHub secret.
7598

7699
## Configure the GitHub secrets
77100

101+
# [Service principal](#tab/userlevel)
102+
78103
1. In [GitHub](https://github.com/), browse your repository.
79104

80105
1. Select **Settings > Secrets > New secret**.
@@ -93,6 +118,25 @@ You'll use the connection string as a GitHub secret.
93118
94119
1. Paste the connection string value into the secret's value field. Give the secret the name `AZURE_SQL_CONNECTION_STRING`.
95120

121+
# [OpenID Connect](#tab/openid)
122+
123+
You need to provide your application's **Client ID**, **Tenant ID**, and **Subscription ID** to the login action. These values can either be provided directly in the workflow or can be stored in GitHub secrets and referenced in your workflow. Saving the values as GitHub secrets is the more secure option.
124+
125+
1. Open your GitHub repository and go to **Settings**.
126+
127+
1. Select **Settings > Secrets > New secret**.
128+
129+
1. Create secrets for `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_SUBSCRIPTION_ID`. Use these values from your Active Directory application for your GitHub secrets:
130+
131+
|GitHub Secret | Active Directory Application |
132+
|---------|---------|
133+
|AZURE_CLIENT_ID | Application (client) ID |
134+
|AZURE_TENANT_ID | Directory (tenant) ID |
135+
|AZURE_SUBSCRIPTION_ID | Subscription ID |
136+
137+
1. Save each secret by selecting **Add secret**.
138+
139+
---
96140

97141
## Add your workflow
98142

@@ -107,21 +151,23 @@ You'll use the connection string as a GitHub secret.
107151
108152
on:
109153
push:
110-
branches: [ master ]
154+
branches: [ main ]
111155
pull_request:
112-
branches: [ master ]
156+
branches: [ main ]
113157
```
114158

115-
1. Rename your workflow `SQL for GitHub Actions` and add the checkout and login actions. These actions will checkout your site code and authenticate with Azure using the `AZURE_CREDENTIALS` GitHub secret you created earlier.
159+
1. Rename your workflow `SQL for GitHub Actions` and add the checkout and login actions. These actions will check out your site code and authenticate with Azure using the `AZURE_CREDENTIALS` GitHub secret you created earlier.
160+
161+
# [Service principal](#tab/userlevel)
116162

117163
```yaml
118164
name: SQL for GitHub Actions
119165
120166
on:
121167
push:
122-
branches: [ master ]
168+
branches: [ main ]
123169
pull_request:
124-
branches: [ master ]
170+
branches: [ main ]
125171
126172
jobs:
127173
build:
@@ -133,6 +179,31 @@ You'll use the connection string as a GitHub secret.
133179
creds: ${{ secrets.AZURE_CREDENTIALS }}
134180
```
135181

182+
# [OpenID Connect](#tab/openid)
183+
184+
```yaml
185+
name: SQL for GitHub Actions
186+
187+
on:
188+
push:
189+
branches: [ main ]
190+
pull_request:
191+
branches: [ main ]
192+
193+
jobs:
194+
build:
195+
runs-on: windows-latest
196+
steps:
197+
- uses: actions/checkout@v1
198+
- uses: azure/login@v1
199+
with:
200+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
201+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
202+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
203+
```
204+
205+
---
206+
136207
1. Use the Azure SQL Deploy action to connect to your SQL instance. Replace `SQL_SERVER_NAME` with the name of your server. You should have a dacpac package (`Database.dacpac`) at the root level of your repository.
137208

138209
```yaml
@@ -141,18 +212,20 @@ You'll use the connection string as a GitHub secret.
141212
server-name: SQL_SERVER_NAME
142213
connection-string: ${{ secrets.AZURE_SQL_CONNECTION_STRING }}
143214
dacpac-package: './Database.dacpac'
144-
```
215+
```
145216

146-
1. Complete your workflow by adding an action to logout of Azure. Here is the completed workflow. The file will appear in the `.github/workflows` folder of your repository.
217+
1. Complete your workflow by adding an action to logout of Azure. Here's the completed workflow. The file will appear in the `.github/workflows` folder of your repository.
218+
219+
# [Service principal](#tab/userlevel)
147220

148221
```yaml
149222
name: SQL for GitHub Actions
150223
151224
on:
152225
push:
153-
branches: [ master ]
226+
branches: [ main ]
154227
pull_request:
155-
branches: [ master ]
228+
branches: [ main ]
156229
157230
158231
jobs:
@@ -176,6 +249,42 @@ You'll use the connection string as a GitHub secret.
176249
az logout
177250
```
178251

252+
# [OpenID Connect](#tab/openid)
253+
254+
```yaml
255+
name: SQL for GitHub Actions
256+
257+
on:
258+
push:
259+
branches: [ main ]
260+
pull_request:
261+
branches: [ main ]
262+
263+
264+
jobs:
265+
build:
266+
runs-on: windows-latest
267+
steps:
268+
- uses: actions/checkout@v1
269+
- uses: azure/login@v1
270+
with:
271+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
272+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
273+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
274+
- uses: azure/sql-action@v1
275+
with:
276+
server-name: SQL_SERVER_NAME
277+
connection-string: ${{ secrets.AZURE_SQL_CONNECTION_STRING }}
278+
dacpac-package: './Database.dacpac'
279+
280+
# Azure logout
281+
- name: logout
282+
run: |
283+
az logout
284+
```
285+
286+
---
287+
179288
## Review your deployment
180289

181290
1. Go to **Actions** for your GitHub repository.

azure-sql/database/connect-query-ruby.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
---
2-
title: Use Ruby to query
3-
description: This topic shows you how to use Ruby to create a program that connects to a database and query it using Transact-SQL statements.
4-
titleSuffix: Azure SQL Database & SQL Managed Instance
2+
title: Use Ruby with Azure SQL Database or SQL Managed Instance
3+
description: This quickstart shows you how to use Ruby to create a program that connects to a database and queries it using Transact-SQL statements.
54
services: sql-database
65
ms.service: sql-database
76
ms.subservice: connect
8-
ms.custom: sqldbrb=2, mode-other
7+
ms.custom:
8+
- sqldbrb=2
9+
- mode-other
10+
- kr2b-contr-experiment
911
ms.devlang: ruby
1012
ms.topic: quickstart
1113
author: dzsquared
1214
ms.author: drskwier
1315
ms.reviewer: kendralittle, mathoma
14-
ms.date: 05/29/2020
16+
ms.date: 05/10/2022
1517
monikerRange: "=azuresql||=azuresql-db||=azuresql-mi"
1618
---
19+
1720
# Quickstart: Use Ruby to query a database in Azure SQL Database or Azure SQL Managed Instance
21+
1822
[!INCLUDE[appliesto-sqldb-sqlmi](../includes/appliesto-sqldb-sqlmi.md)]
1923

2024
This quickstart demonstrates how to use [Ruby](https://www.ruby-lang.org) to connect to a database and query data with Transact-SQL statements.
@@ -25,7 +29,7 @@ To complete this quickstart, you need the following prerequisites:
2529

2630
- A database. You can use one of these quickstarts to create and then configure the database:
2731

28-
| Action | SQL Database | SQL Managed Instance | SQL Server on Azure VM |
32+
| Action | SQL Database | SQL Managed Instance | SQL Server on Azure Virtual Machines |
2933
|:--- |:--- |:---|:---|
3034
| Create| [Portal](single-database-create-quickstart.md) | [Portal](../managed-instance/instance-create-quickstart.md) | [Portal](../virtual-machines/windows/sql-vm-create-portal-quickstart.md)
3135
|| [CLI](scripts/create-and-configure-database-cli.md) | [CLI](https://medium.com/azure-sqldb-managed-instance/working-with-sql-managed-instance-using-azure-cli-611795fe0b44) |
@@ -36,7 +40,7 @@ To complete this quickstart, you need the following prerequisites:
3640
|||Restore or import Adventure Works from a [BACPAC](database-import.md) file from [GitHub](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works)| Restore or import Adventure Works from a [BACPAC](database-import.md) file from [GitHub](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works)|
3741

3842
> [!IMPORTANT]
39-
> The scripts in this article are written to use the Adventure Works database. With a SQL Managed Instance, you must either import the Adventure Works database into an instance database or modify the scripts in this article to use the Wide World Importers database.
43+
> The scripts in this article are written to use the Adventure Works database. With a SQL Managed Instance, either import the Adventure Works database into an instance database or modify the scripts in this article to use the Wide World Importers database.
4044
4145
- Ruby and related software for your operating system:
4246

@@ -48,26 +52,23 @@ To complete this quickstart, you need the following prerequisites:
4852

4953
## Get server connection information
5054

51-
Get the connection information you need to connect to a database in Azure SQL Database. You'll need the fully qualified server name or host name, database name, and login information for the upcoming procedures.
55+
Get the information you need to connect to a database in Azure SQL Database. You'll need the fully qualified server name or host name, database name, and sign-in information for the upcoming procedures.
5256

5357
1. Sign in to the [Azure portal](https://portal.azure.com/).
5458

5559
2. Navigate to the **SQL databases** or **SQL Managed Instances** page.
5660

57-
3. On the **Overview** page, review the fully qualified server name next to **Server name** for a database in Azure SQL Database or the fully qualified server name (or IP address) next to **Host** for an Azure SQL Managed Instance or SQL Server on Azure VM. To copy the server name or host name, hover over it and select the **Copy** icon.
61+
3. On the **Overview** page, review the fully qualified server name next to **Server name** for a database in Azure SQL Database or the fully qualified server name (or IP address) next to **Host** for an Azure SQL Managed Instance or SQL Server on Virtual Machines. To copy the server name or host name, hover over it and select the **Copy** icon.
5862

5963
> [!NOTE]
60-
> For connection information for SQL Server on Azure VM, see [Connect to a SQL Server instance](../virtual-machines/windows/sql-vm-create-portal-quickstart.md#connect-to-sql-server).
64+
> For connection information for SQL Server on Azure Virtual Machines, see [Connect to a SQL Server instance](../virtual-machines/windows/sql-vm-create-portal-quickstart.md#connect-to-sql-server).
6165
6266
## Create code to query your database in Azure SQL Database
6367

6468
1. In a text or code editor, create a new file named *sqltest.rb*.
6569

6670
1. Add the following code. Substitute the values from your database in Azure SQL Database for `<server>`, `<database>`, `<username>`, and `<password>`.
6771

68-
>[!IMPORTANT]
69-
>The code in this example uses the sample AdventureWorksLT data, which you can choose as source when creating your database. If your database has different data, use tables from your own database in the SELECT query.
70-
7172
```ruby
7273
require 'tiny_tds'
7374
server = '<server>.database.windows.net'
@@ -88,17 +89,21 @@ Get the connection information you need to connect to a database in Azure SQL Da
8889
end
8990
```
9091

92+
>[!IMPORTANT]
93+
>This example uses the sample AdventureWorksLT data, which you can choose as source when creating your database. If your database has different data, use tables from your own database in the SELECT query.
94+
9195
## Run the code
9296

9397
1. At a command prompt, run the following command:
9498

9599
```bash
96100
ruby sqltest.rb
97101
```
98-
99-
1. Verify that the top 20 Category/Product rows from your database are returned.
102+
103+
1. Verify that the top 20 Category/Product rows from your database are returned.
100104

101105
## Next steps
106+
102107
- [Design your first database in Azure SQL Database](design-first-database-tutorial.md)
103108
- [GitHub repository for TinyTDS](https://github.com/rails-sqlserver/tiny_tds)
104109
- [Report issues or ask questions about TinyTDS](https://github.com/rails-sqlserver/tiny_tds/issues)

azure-sql/database/connectivity-architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Periodically, we will retire Gateways using old hardware and migrate the traffic
105105
| South Africa West | 102.133.24.0 | 102.133.25.32/29 |
106106
| South Central US | 13.66.62.124, 104.214.16.32, 20.45.121.1, 20.49.88.1 | 20.45.121.32/29, 20.49.88.32/29, 20.49.89.32/29, 40.124.64.136/29 |
107107
| South East Asia | 104.43.15.0, 40.78.232.3, 13.67.16.193 | 13.67.16.192/29, 23.98.80.192/29, 40.78.232.192/29|
108-
| Switzerland North | 51.107.56.0, 51.107.57.0 | 51.107.56.32/29 |
108+
| Switzerland North | 51.107.56.0, 51.107.57.0 | 51.107.56.32/29, 51.103.203.192/29, 20.208.19.192/29, 51.107.242.32/27 |
109109
| Switzerland West | 51.107.152.0, 51.107.153.0 | 51.107.153.32/29 |
110110
| UAE Central | 20.37.72.64 | 20.37.72.96/29, 20.37.73.96/29 |
111111
| UAE North | 65.52.248.0 | 40.120.72.32/29, 65.52.248.32/29 |

azure-sql/database/doc-changes-updates-release-notes-whats-new.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.subservice: service-overview
1010
ms.custom: sqldbrb=2, references_regions, ignite-fall-2021
1111
ms.devlang:
1212
ms.topic: conceptual
13-
ms.date: 04/26/2022
13+
ms.date: 05/24/2022
1414
---
1515
# What's new in Azure SQL Database?
1616
[!INCLUDE[appliesto-sqldb](../includes/appliesto-sqldb.md)]
@@ -28,6 +28,7 @@ The following table lists the features of Azure SQL Database that are currently
2828

2929
| Feature | Details |
3030
| ---| --- |
31+
| [Azure Synapse Link for Azure SQL Database](/azure/synapse-analytics/synapse-link/sql-synapse-link-overview) | Azure Synapse Link for SQL enables near real time analytics over operational data in Azure SQL Database or SQL Server 2022. |
3132
| [Elastic jobs](elastic-jobs-overview.md) | The elastic jobs feature is the SQL Server Agent replacement for Azure SQL Database as a PaaS offering. |
3233
| [Elastic queries](elastic-query-overview.md) | The elastic queries feature allows for cross-database queries in Azure SQL Database. |
3334
| [Elastic transactions](elastic-transactions-overview.md) | Elastic transactions allow you to execute transactions distributed among cloud databases in Azure SQL Database. |
@@ -59,6 +60,12 @@ The following table lists the features of Azure SQL Database that have transitio
5960

6061
Learn about significant changes to the Azure SQL Database documentation.
6162

63+
### May 2022
64+
65+
| Changes | Details |
66+
| --- | --- |
67+
| **Azure Synapse Link for Azure SQL Database** | Azure Synapse Link enables near real-time analytics over operational data in SQL Server 2022 and Azure SQL Database. With a seamless integration between operational stores and Azure Synapse Analytics dedicated SQL pools, Azure Synapse Link enables you to run analytics, business intelligence and machine learning scenarios on your operational data with minimum impact on source databases with a new change feed technology. For more information, see [What is Synapse Link for SQL? (Preview)](/azure/synapse-analytics/synapse-link/sql-synapse-link-overview).
68+
6269
### April 2022
6370

6471
| Changes | Details |

0 commit comments

Comments
 (0)