You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Azure SQL Database [local development experience](local-dev-experience-overview.md) empowers application developers and database professionals to design, edit, build/validate, publish, and run database schemas for databases directly on their workstation using an Azure SQL Database containerized environment. As part of this workflow, you will create a SQL Database Project. The SQL Database Project extension allows you to create a new blank project, create a new project from a database, and open previously created projects.
16
+
The Azure SQL Database [local development experience](local-dev-experience-overview.md) empowers application developers and database professionals to design, edit, build/validate, publish, and run database schemas for databases directly on their workstation using an Azure SQL Database containerized environment. As part of this workflow, you'll create a SQL Database Project. The SQL Database Project extension allows you to create a new blank project, create a new project from a database, and open previously created projects.
17
17
18
18
## Prerequisites
19
19
20
20
Before creating or opening a SQL Database project, follow the steps in [Set up a local development environment for Azure SQL Database](local-dev-experience-set-up-dev-environment.md) to configure your environment.
21
21
22
22
## Create a new project
23
23
24
-
In the **Database Projects** view select the **New Project** button and enter a project name in the text input that appears. In the **Select a Folder** dialog that appears, choose a directory for the project's folder, .sqlproj file, and other contents to reside in.
24
+
In the **Database Projects** view, select the **New Project** button and enter a project name in the text input that appears. In the **Select a Folder** dialog that appears, choose a directory for the project's folder, `.sqlproj` file, and other contents to reside in.
25
25
26
26
The empty project is opened and visible in the **Database Projects** view for editing.
27
27
28
28
## Create a project from Azure SQL Database
29
29
30
-
In the **Project** view, select the **Import Project from Database** button and connect to a database in Azure SQL Database. Once connected, select a database from the list of available databases and set the name of the project.
30
+
In the **Project** view, select the **Import Project from Database** button and connect to a database in Azure SQL Database. Once connected, select a database from the list of available databases and set the name of the project.
31
31
32
32
Finally, select a target structure of the extraction. The new project opens and contains SQL scripts for the contents of the selected database.
33
33
34
34
## Open an existing project
35
35
36
-
In the **Database Projects** view, select **Open Project** and open an existing *.sqlproj* file from the file picker that appears. Existing projects can originate from Azure Data Studio, Visual Studio Code or [Visual Studio SQL Server Data Tools](/sql/ssdt/sql-server-data-tools).
36
+
In the **Database Projects** view, select **Open Project** and open an existing `.sqlproj` file from the file picker that appears. Existing projects can originate from Azure Data Studio, Visual Studio Code, or [Visual Studio SQL Server Data Tools](/sql/ssdt/sql-server-data-tools).
37
37
38
38
The existing project opens and its contents are visible in the **Database Projects** view for editing.
39
39
40
-
## Next steps
40
+
## Next step
41
+
42
+
> [!div class="nextstepaction"]
43
+
> [Build and Publish a project](/azure-data-studio/extensions/sql-database-project-extension-build)
44
+
45
+
## Related content
41
46
42
47
Learn more about the local development experience for Azure SQL Database:
Copy file name to clipboardExpand all lines: azure-sql/database/local-dev-experience-set-up-dev-environment.md
+23-16Lines changed: 23 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: How to set up a local development environment for Azure SQL Databas
4
4
author: scoriani
5
5
ms.author: scoriani
6
6
ms.reviewer: mathoma
7
-
ms.date: 05/24/2022
7
+
ms.date: 04/01/2024
8
8
ms.service: sql-database
9
9
ms.topic: how-to
10
10
---
@@ -16,20 +16,20 @@ This article teaches you to set up the [local development experience for Azure S
16
16
17
17
## Prerequisites
18
18
19
-
Before you configure the local development environment for Azure SQL Database, make sure you have met the following hardware and software requirements:
19
+
Before you configure the local development environment for Azure SQL Database, make sure you meet the following hardware and software requirements:
20
20
21
21
- Software requirements:
22
22
- Currently supported on Windows 10 or later release, macOS Mojave or later release, and Linux (preferably Ubuntu 18.04 or later release)
23
-
-[Azure Data Studio](/azure-data-studio/download-azure-data-studio) or [VSCode](https://code.visualstudio.com/Docs)
23
+
-[Azure Data Studio](/azure-data-studio/download-azure-data-studio) or [Visual Studio Code](https://code.visualstudio.com/Docs)
24
24
- Minimum hardware requirements:
25
-
- 8GB RAM
26
-
- 10GB available disk space
25
+
- 8-GB RAM
26
+
- 10-GB available disk space
27
27
28
28
## Install Docker Desktop
29
29
30
30
The local development environment for Azure SQL Database uses the [Azure SQL Database emulator](local-dev-experience-sql-database-emulator.md), a containerized database with close fidelity to the Azure SQL Database public service. The Azure SQL Database emulator is implemented as a [Docker](https://www.docker.com/) container.
31
31
32
-
Install [Docker Desktop](https://www.docker.com/products/docker-desktop/). If you are using Windows, set up [Docker Desktop for Windows with WSL 2](/windows/wsl/tutorials/wsl-containers).
32
+
Install [Docker Desktop](https://www.docker.com/products/docker-desktop/). If you're using Windows, set up [Docker Desktop for Windows with WSL 2](/windows/wsl/tutorials/wsl-containers).
33
33
34
34
Ensure that Docker Desktop is running before using your local development environment for Azure SQL Database.
35
35
@@ -39,30 +39,32 @@ There are different extensions to install depending on your preferred developmen
39
39
40
40
| Extension | Visual Studio Code | Azure Data Studio |
41
41
|--|--|--|
42
-
| The [mssql extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql)| Install the mssql extension. | Installation is not necessary as the extension as the functionality is natively available. |
43
-
|[SQL Database Projects extension (Preview)](https://marketplace.visualstudio.com/items?itemName=ms-mssql.sql-database-projects-vscode)| Installation as not necessary as the SQL Database Projects extension is bundled with the mssql extension and is automatically installed and updated when the mssql extension is installed or updated. | Install the SQL Database Projects extension. |
42
+
| The [mssql extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql)| Install the `mssql` extension. | Installation isn't necessary. The mssql extension as the functionality is natively available. |
43
+
|[SQL Database Projects extension (Preview)](https://marketplace.visualstudio.com/items?itemName=ms-mssql.sql-database-projects-vscode)| Installation isn't necessary. The SQL Database Projects extension is bundled with the `mssql` extension, and is automatically installed and updated when the `mssql` extension is installed or updated. | Install the SQL Database Projects extension. |
44
44
45
45
# [Visual Studio Code](#tab/vscode)
46
46
47
-
If you are using [VSCode](https://code.visualstudio.com/Docs), install the [mssql extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql).
47
+
If you're using [Visual Studio Code](https://code.visualstudio.com/Docs), install the [mssql extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql).
48
48
49
-
The mssql extension enables you to connect and run queries and test scripts against a database. The database may be running in the Azure SQL Database emulator locally, or it may be a database in the global Azure SQL Database service.
49
+
The `mssql` extension enables you to connect and run queries and test scripts against a database. The database can run in the Azure SQL Database emulator locally, or in the global Azure SQL Database service.
50
50
51
51
To install the extension:
52
52
53
-
1. In VSCode, select **View** > **Command Palette**, or press **Ctrl**+**Shift**+**P**, or press **F1** to open the **Command Palette**.
53
+
1. In Visual Studio Code, select **View** > **Command Palette**, or press **Ctrl**+**Shift**+**P**, or press **F1** to open the **Command Palette**.
54
54
55
55
1. In the **Command Palette**, select **Extensions: Install Extensions** from the dropdown.
56
56
57
-
1. In the **Extensions** pane, type **mssql**.
57
+
1. In the **Extensions** pane, type `mssql`.
58
58
59
59
1. Select the **SQL Server (mssql)** extension, and then select **Install**.
60
60
61
61
1. After the installation completes, select **Reload** to enable the extension.
62
62
63
+
1. There's no need to run the docker container with a SQL image manually, it is deployed and run when you [Build and Publish a Project](/azure-data-studio/extensions/sql-database-project-extension-build#publish-a-database-project).
64
+
63
65
# [Azure Data Studio](#tab/ads)
64
66
65
-
If you are using [Azure Data Studio](/azure-data-studio/download-azure-data-studio), install the [SQL Database Projects extension (Preview)](https://marketplace.visualstudio.com/items?itemName=ms-mssql.sql-database-projects-vscode). The SQL Database Projects extension enables you to capture an existing database schema and/or design new database objects using a declarative database design model. You can commit a database schema to version control. You can also publish a database schema to a database running in the Azure SQL Database emulator, or to a database running in the global Azure SQL Database service. You may publish an entire database, or incremental changes to a database.
67
+
If you're using [Azure Data Studio](/azure-data-studio/download-azure-data-studio), install the [SQL Database Projects extension (Preview)](https://marketplace.visualstudio.com/items?itemName=ms-mssql.sql-database-projects-vscode). The SQL Database Projects extension enables you to capture an existing database schema and/or design new database objects using a declarative database design model. You can commit a database schema to version control. You can also publish a database schema to a database running in the Azure SQL Database emulator, or to a database running in the global Azure SQL Database service. You can publish an entire database, or incremental changes to a database.
66
68
67
69
To install the SQL Database Projects extension:
68
70
@@ -76,15 +78,20 @@ To install the SQL Database Projects extension:
76
78
77
79
1. After the installation completes, select **Reload** to enable the extension.
78
80
81
+
1. There's no need to run the docker container with a SQL image manually, as it gets deployed and run in the subsequent step: [Build and Publish a Project](/azure-data-studio/extensions/sql-database-project-extension-build#publish-a-database-project).
82
+
79
83
---
80
84
85
+
## Begin using your local development environment
81
86
87
+
You have now set up your local development environment for Azure SQL Database.
82
88
83
-
## Begin using your local development environment
89
+
## Next step
84
90
85
-
You have now set up your local development environment for Azure SQL Database. Next, [Create a database project for a local Azure SQL Database development environment](local-dev-experience-create-database-project.md).
91
+
> [!div class="nextstepaction"]
92
+
> [Create a database project for a local Azure SQL Database development environment](local-dev-experience-create-database-project.md)
86
93
87
-
## Next steps
94
+
## Related content
88
95
89
96
Learn more about the local development experience for Azure SQL Database:
The following sample shows how to build a model with [Spark ML](https://spark.apache.org/docs/latest/ml-guide.html), export the model to [MLeap](http://mleap-docs.combust.ml/), and score the model in SQL Server with its [Java Language Extension](../language-extensions/language-extensions-overview.md). This is done in the context of a SQL Server big data cluster.
18
+
The following sample shows how to build a model with [Spark ML](https://spark.apache.org/docs/latest/ml-guide.html), export the model to [MLeap](https://combust.github.io/mleap-docs/), and score the model in SQL Server with its [Java Language Extension](../language-extensions/language-extensions-overview.md). This is done in the context of a SQL Server big data cluster.
19
19
20
20
The following diagram illustrates the work performed in this sample:
Copy file name to clipboardExpand all lines: docs/big-data-cluster/sparklyr-from-RStudio.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Sparklyr provides an R interface for Apache Spark. Sparklyr is a popular way for
27
27
28
28
Install and configure **RStudio Desktop** with the following steps:
29
29
30
-
1. If you are running on a Windows client, [download and install R 3.6.3](https://cran.r-project.org/bin/windows/base/old/). Also, [download and install RTools 3.5](https://cran.r-project.org/bin/windows/Rtools/history.html). Make sure to configure RTools binary folder on your PATH environment variable.
30
+
1. If you are running on a Windows client, [download and install R 3.6.3](https://cran-archive.r-project.org/bin/windows/base/old/). Also, [download and install RTools 3.5](https://cran.r-project.org/bin/windows/Rtools/history.html). Make sure to configure RTools binary folder on your PATH environment variable.
31
31
32
32
> [!WARNING]
33
33
> R version 4.x and sparklyr versions other that the one specified below are verified not to work as of SQL Server Big Data Clusters CU13.
0 commit comments