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

Commit 11160f2

Browse files
committed
started ag refresh
updating redirection file refreshed more articles consistency fix added linux steps more fixes more acrolinx changes acrolinx
1 parent 8b40feb commit 11160f2

50 files changed

Lines changed: 815 additions & 827 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
"redirect_url": "/previous-versions/sql/2014/2014-toc/sql-server-transaction-log-architecture-and-management",
5151
"redirect_document_id": false
5252
},
53+
{
54+
"source_path": "docs/database-engine/availability-groups/windows/always-on-availability-groups-sql-server.md",
55+
"redirect_url": "/sql/database-engine/availability-groups/windows/overview-of-always-on-availability-groups-sql-server",
56+
"redirect_document_id": true
57+
},
5358
{
5459
"source_path": "docs/2014/analysis-services/4-6-specifying-attribute-relationships-in-user-defined-hierarchy.md",
5560
"redirect_url": "/previous-versions/sql/2014/analysis-services/4-6-specifying-attribute-relationships-in-user-defined-hierarchy",

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

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
---
22
title: Use Visual Studio Code to connect and query
33
titleSuffix: Azure SQL Database & SQL Managed Instance
4-
description: Learn how to connect to Azure SQL Database or SQL Managed Instance on Azure by using Visual Studio Code. Then, run Transact-SQL (T-SQL) statements to query and edit data.
4+
description: Learn how to connect to Azure SQL Database or Azure SQL Managed Instance by using Visual Studio Code. Then, run Transact-SQL (T-SQL) statements to query and edit data.
55
author: dzsquared
66
ms.author: drskwier
77
ms.reviewer: wiassaf, mathoma, randolphwest
8-
ms.date: 08/29/2023
8+
ms.date: 09/27/2023
99
ms.service: sql-database
1010
ms.subservice: connect
1111
ms.topic: quickstart
1212
ms.custom:
13-
- sqldbrb=2
1413
- mode-ui
1514
keywords: connect to sql database
1615
monikerRange: "=azuresql || =azuresql-db || =azuresql-mi"
@@ -19,7 +18,7 @@ monikerRange: "=azuresql || =azuresql-db || =azuresql-mi"
1918

2019
[!INCLUDE [appliesto-sqldb-sqlmi](../includes/appliesto-sqldb-sqlmi.md)]
2120

22-
[Visual Studio Code](https://code.visualstudio.com/docs) is a graphical code editor for Linux, macOS, and Windows. It supports extensions, including the [mssql extension](https://aka.ms/mssql-marketplace) for querying a SQL Server instance, Azure SQL Database, an Azure SQL Managed Instance, and a database in Azure Synapse Analytics. In this quickstart, you'll use Visual Studio Code to connect to Azure SQL Database or Azure SQL Managed Instance and then run Transact-SQL statements to query, insert, update, and delete data.
21+
[Visual Studio Code](https://code.visualstudio.com/docs) is a graphical code editor for Linux, macOS, and Windows. It supports extensions, including the [mssql extension](https://aka.ms/mssql-marketplace) for querying SQL Server, Azure SQL Database, Azure SQL Managed Instance, and a database in Azure Synapse Analytics. In this quickstart, you use Visual Studio Code to connect to Azure SQL Database or Azure SQL Managed Instance and then run Transact-SQL statements to query, insert, update, and delete data.
2322

2423
## Prerequisites
2524

@@ -40,11 +39,20 @@ monikerRange: "=azuresql || =azuresql-db || =azuresql-mi"
4039
4140
## Install Visual Studio Code
4241

43-
Make sure you have installed the latest [Visual Studio Code](https://code.visualstudio.com/Download) and loaded the [mssql extension](https://aka.ms/mssql-marketplace). For guidance on installing the mssql extension, see [Install Visual Studio Code](/sql/linux/sql-server-linux-develop-use-vscode#install-and-start-visual-studio-code) and [mssql for Visual Studio Code
44-
](https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql).
42+
Make sure you have installed the latest [Visual Studio Code](https://code.visualstudio.com/Download). For installation guidance, see [Install Visual Studio Code](/sql/linux/sql-server-linux-develop-use-vscode#install-and-start-visual-studio-code).
4543

4644
## Configure Visual Studio Code
4745

46+
### Windows
47+
48+
Load the [mssql extension](https://aka.ms/mssql-marketplace) by following these steps:
49+
50+
1. Open Visual Studio Code.
51+
1. Open the Extensions pane (or **Ctrl + Shift + X**).
52+
1. Search for `sql` and then install the **SQL Server (mssql)** extension.
53+
54+
For additional installation guidance, see [mssql for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql).
55+
4856
### macOS
4957

5058
For macOS, you need to install OpenSSL, which is a prerequisite for .NET Core that mssql extension uses. Open your terminal and enter the following commands to install **brew** and **OpenSSL**.
@@ -60,15 +68,17 @@ ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
6068

6169
### Linux (Ubuntu)
6270

63-
No special configuration needed.
71+
Load the [mssql extension](https://aka.ms/mssql-marketplace) by following these steps:
6472

65-
### Windows
73+
1. Open Visual Studio Code.
74+
1. Open the Extensions pane (or **Ctrl + Shift + X**).
75+
1. Search for `sql` and then install the **SQL Server (mssql)** extension.
6676

67-
No special configuration needed.
77+
For additional installation guidance, see [mssql for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql).
6878

6979
## Get server connection information
7080

71-
Get the connection information you need to connect to Azure SQL Database. You'll need the fully qualified server name or host name, database name, and login information for the upcoming procedures.
81+
Get the connection information you need to connect to Azure SQL Database. You need the fully qualified server name or host name, database name, and login information for the upcoming procedures.
7282

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

@@ -82,7 +92,7 @@ In Visual Studio Code, set the language mode to **SQL** to enable mssql command
8292

8393
1. Open a new Visual Studio Code window.
8494

85-
1. Press **Ctrl**+**N**. A new plain text file opens.
95+
1. Press **Ctrl + N**. A new plain text file opens.
8696

8797
1. Select **Plain Text** in the status bar's lower right-hand corner.
8898

@@ -95,13 +105,13 @@ Use Visual Studio Code to establish a connection to your server.
95105
> [!IMPORTANT]
96106
> Before continuing, make sure that you have your server and sign-in information ready. Once you begin entering the connection profile information, if you change your focus from Visual Studio Code, you have to restart creating the profile.
97107
98-
1. In Visual Studio Code, press **Ctrl+Shift+P** (or **F1**) to open the Command Palette.
108+
1. In Visual Studio Code, press **Ctrl + Shift + P** (or **F1**) to open the Command Palette.
99109

100-
1. Select **MS SQL:Connect** and choose **Enter**.
110+
1. Type `connect` and then choose **MS SQL:Connect**.
101111

102-
1. Select **Create Connection Profile**.
112+
1. Select **+ Create Connection Profile**.
103113

104-
1. Follow the prompts to specify the new profile's connection properties. After specifying each value, choose **Enter** to continue.
114+
1. Follow the prompts to specify the new profile's connection properties. After specifying each value, press **Enter** to continue.
105115

106116
| Property       | Suggested value | Description  |
107117
| --- | --- | --- |
@@ -129,9 +139,9 @@ Run the following [SELECT](/sql/t-sql/queries/select-transact-sql) Transact-SQL
129139
ON pc.ProductCategoryId = p.ProductCategoryId;
130140
```
131141

132-
1. Press **Ctrl**+**Shift**+**E** to run the query and display results from the `Product` and `ProductCategory` tables.
142+
1. Press **Ctrl + Shift + E** to run the query and display results from the `Product` and `ProductCategory` tables.
133143

134-
:::image type="content" source="./media/connect-query-vscode/query.png" alt-text="Screenshot of query to retrieve data from 2 tables.":::
144+
:::image type="content" source="./media/connect-query-vscode/query.png" alt-text="Screenshot of query to retrieve data from 2 tables." lightbox="./media/connect-query-vscode/query.png":::
135145

136146
## Insert data
137147

@@ -160,7 +170,7 @@ Run the following [INSERT](/sql/t-sql/statements/insert-transact-sql) Transact-S
160170
);
161171
```
162172

163-
1. Press **Ctrl**+**Shift**+**E** to insert a new row in the `Product` table.
173+
1. Press **Ctrl + Shift + E** to insert a new row in the `Product` table.
164174

165175
## Update data
166176

@@ -174,7 +184,7 @@ Run the following [UPDATE](/sql/t-sql/queries/update-transact-sql) Transact-SQL
174184
WHERE Name = 'myNewProduct';
175185
```
176186

177-
1. Press **Ctrl**+**Shift**+**E** to update the specified row in the `Product` table.
187+
1. Press **Ctrl + Shift + E** to update the specified row in the `Product` table.
178188

179189
## Delete data
180190

@@ -187,7 +197,7 @@ Run the following [DELETE](/sql/t-sql/statements/delete-transact-sql) Transact-S
187197
WHERE Name = 'myNewProduct';
188198
```
189199

190-
1. Press **Ctrl**+**Shift**+**E** to delete the specified row in the `Product` table.
200+
1. Press **Ctrl + Shift + E** to delete the specified row in the `Product` table.
191201

192202
## Next steps
193203

azure-sql/managed-instance/point-to-site-p2s-configure.md

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ description: Connect to Azure SQL Managed Instance with SQL Server Management St
55
author: zoran-rilak-msft
66
ms.author: zoranrilak
77
ms.reviewer: mathoma, bonova, jovanpop
8-
ms.date: 07/20/2023
8+
ms.date: 09/27/2023
99
ms.service: sql-managed-instance
1010
ms.subservice: deployment-configuration
1111
ms.topic: quickstart
1212
ms.custom: mode-other
1313
---
1414
# Quickstart: Configure a point-to-site connection to Azure SQL Managed Instance from on-premises
15-
[!INCLUDE[appliesto-sqlmi](../includes/appliesto-sqlmi.md)]
15+
16+
[!INCLUDE [appliesto-sqlmi](../includes/appliesto-sqlmi.md)]
1617

1718
This quickstart teaches you how to connect to Azure SQL Managed Instance by using [SQL Server Management Studio](/sql/ssms/sql-server-management-studio-ssms) (SSMS) from an on-premises client computer over a point-to-site connection. For information about point-to-site connections, see [About Point-to-Site VPN](/azure/vpn-gateway/point-to-site-about).
1819

@@ -50,59 +51,68 @@ This quickstart:
5051
5152
1. Paste the script in your PowerShell window and provide the required parameters. The values for `<subscriptionId>`, `<resourceGroup>`, and `<virtualNetworkName>` should match the ones that you used for the [Create a managed instance](instance-create-quickstart.md) quickstart. The value for `<certificateNamePrefix>` can be a string of your choice.
5253
53-
> [!NOTE]
54-
> If you get an error about parsing the Internet Explorer engine, either launch Internet Explorer to complete the initial set up or upgrade to a newer version of PowerShell.
54+
> [!NOTE]
55+
> If you get an error about parsing the Internet Explorer engine, either launch Internet Explorer to complete the initial set up or upgrade to a newer version of PowerShell.
5556
5657
1. Execute the PowerShell script.
5758
58-
> [!IMPORTANT]
59+
> [!IMPORTANT]
5960
> Do not continue until the PowerShell script completes.
6061
6162
## Create a VPN connection
6263
6364
1. Sign in to the [Azure portal](https://portal.azure.com/).
64-
2. Open the resource group where you created the virtual network gateway, and then open the virtual network gateway resource.
65-
3. Select **Point-to-site configuration** and then select **Download VPN client**.
65+
1. Open the resource group where you created the virtual network gateway, and then open the virtual network gateway resource.
66+
1. Select **Point-to-site configuration** and then select **Download VPN client**.
6667
67-
![Screenshot of the Gateway Point to site configuration page for the virtual network of your SQL managed instance in the Azure portal.](./media/point-to-site-p2s-configure/download-vpn-client.png)
68+
:::image type="content" source="./media/point-to-site-p2s-configure/download-vpn-client.png" alt-text="Screenshot of the Gateway Point to site configuration page for the virtual network of your SQL managed instance in the Azure portal." lightbox="./media/point-to-site-p2s-configure/download-vpn-client.png":::
6869
69-
4. On your on-premises client computer, extract the files from the zip file and then open the folder with the extracted files.
70-
5. Open the **WindowsAmd64** folder and open the **VpnClientSetupAmd64.exe** file.
71-
6. If you receive a **Windows protected your PC** message, select **More info** and then select **Run anyway**.
70+
1. On your on-premises client computer, extract the files from the zip file and then open the folder with the extracted files.
71+
1. Open the **WindowsAmd64** folder and open the **VpnClientSetupAmd64.exe** file.
72+
1. If you receive a **Windows protected your PC** message, select **More info** and then select **Run anyway**.
7273
73-
![Screenshot of Windows Defender asking if you're sure you want to install the VPN client.](./media/point-to-site-p2s-configure/vpn-client-defender.png)
74+
:::image type="content" source="./media/point-to-site-p2s-configure/vpn-client-defender.png" alt-text="Screenshot of Windows Defender asking if you're sure you want to install the VPN client.":::
7475
75-
7. In the User Account Control dialog box, select **Yes** to continue.
76-
8. In the dialog box referencing your virtual network, select **Yes** to install the VPN client for your virtual network.
76+
1. In the User Account Control dialog box, select **Yes** to continue.
77+
1. In the dialog box referencing your virtual network, select **Yes** to install the VPN client for your virtual network.
7778
7879
## Connect to the VPN connection
7980
8081
1. Go to **VPN** in **Network & Internet** on your on-premises client computer and select your SQL managed instance virtual network to establish a connection to this VNet. In the following image, the VNet is named **MyNewVNet**:
8182
82-
![Screenshot of the Windows VPN connection screen.](./media/point-to-site-p2s-configure/vpn-connection.png)
83+
:::image type="content" source="./media/point-to-site-p2s-configure/vpn-connection.png" alt-text="Screenshot of the Windows VPN connection screen.":::
8384
84-
2. Select **Connect**.
85-
3. In the dialog box, select **Connect**.
85+
1. Select **Connect**.
86+
1. In the dialog box, select **Connect**.
8687
87-
![Screenshot of the VPN that highlights the Connect button.](./media/point-to-site-p2s-configure/vpn-connection2.png)
88+
:::image type="content" source="./media/point-to-site-p2s-configure/vpn-connection2.png" alt-text="Screenshot of the VPN that highlights the Connect button.":::
8889
89-
4. When you're prompted that Connection Manager needs elevated privileges to update your route table, choose **Continue**.
90-
5. Select **Yes** in the User Account Control dialog box to continue.
90+
1. When you're prompted that Connection Manager needs elevated privileges to update your route table, choose **Continue**.
91+
1. Select **Yes** in the User Account Control dialog box to continue.
9192
9293
You've established a VPN connection to your SQL managed instance VNet.
9394
94-
![Screenshot of the Windows VPN connection screen that highlights the Connected message when you've established your connection.](./media/point-to-site-p2s-configure/vpn-connection-succeeded.png)
95+
:::image type="content" source="./media/point-to-site-p2s-configure/vpn-connection-succeeded.png" alt-text="Screenshot of the Windows VPN connection screen that highlights the Connected message when you've established your connection.":::
9596
9697
## Connect with SSMS
9798
9899
1. On the on-premises client computer, open SQL Server Management Studio (SSMS).
99-
2. In the **Connect to Server** dialog box, enter the fully qualified **host name** for your SQL managed instance in the **Server name** box.
100-
3. Select **SQL Server Authentication**, provide your username and password, and then select **Connect**.
100+
1. In the **Connect to Server** dialog box, enter the fully qualified **host name** for your SQL managed instance in the **Server name** box.
101+
1. Select **SQL Server Authentication**, provide your username and password, and then select **Connect**.
101102
102-
![Screenshot of the Connect to Server dialog box in SSMS.](./media/point-to-site-p2s-configure/ssms-connect.png)
103+
:::image type="content" source="./media/point-to-site-p2s-configure/ssms-connect.png" alt-text="Screenshot of the Connect to Server dialog box in SSMS.":::
103104
104105
After you connect, you can view your system and user databases in the Databases node. You can also view various objects in the Security, Server Objects, Replication, Management, SQL Server Agent, and XEvent Profiler nodes.
105106
107+
## Connection could not be established
108+
109+
If your connection works initially but after some time, you see the error `The connection could not be established` when you try to connect to the VPN, follow these steps:
110+
111+
1. Open your Windows **VPN Settings**.
112+
1. Remove the VPN connection.
113+
1. Repeat the steps in [Create a VPN connection](#create-a-vpn-connection) to download the VPN client and install it again.
114+
1. Connect to the VPN.
115+
106116
## Next steps
107117
108118
- For a quickstart showing how to connect from an Azure virtual machine, see [Configure a point-to-site connection](point-to-site-p2s-configure.md).

docs/database-engine/availability-groups/windows/administration-of-an-availability-group-sql-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ helpviewer_keywords:
105105
[SQL Server Customer Advisory Team Whitepapers](https://techcommunity.microsoft.com/t5/DataCAT/bg-p/DataCAT/)
106106

107107
## See Also
108-
[Always On Availability Groups &#40;SQL Server&#41;](../../../database-engine/availability-groups/windows/always-on-availability-groups-sql-server.md)
108+
[Always On Availability Groups &#40;SQL Server&#41;](../../../database-engine/availability-groups/windows/overview-of-always-on-availability-groups-sql-server.md)
109109
[Overview of Always On Availability Groups &#40;SQL Server&#41;](../../../database-engine/availability-groups/windows/overview-of-always-on-availability-groups-sql-server.md)
110110
[Configuration of a Server Instance for Always On Availability Groups &#40;SQL Server&#41;](../../../database-engine/availability-groups/windows/configuration-of-a-server-instance-for-always-on-availability-groups-sql-server.md)
111111
[Creation and Configuration of Availability Groups &#40;SQL Server&#41;](../../../database-engine/availability-groups/windows/creation-and-configuration-of-availability-groups-sql-server.md)

0 commit comments

Comments
 (0)