azure 使用

In this article, we will introduce the Azure Data Studio in a way that makes it easy for you to start using it. Enjoy the reading!

在本文中,我们将以一种使您轻松开始使用它的方式介绍Azure Data Studio。 享受阅读!

为什么选择Azure Data Studio? (Why Azure Data Studio?)

SQL Server Management Studio is the most common Graphical User Interface tool that we used to use for administrating our SQL Server instances that are located in our data center or hosted in the cloud. SSMS can be used also for developing our database projects, includes creating or modifying the database objects and viewing then modifying the data that is stored in these databases.

SQL Server Management Studio是最常用的图形用户界面工具,我们曾经使用它来管理位于数据中心或云中SQL Server实例。 SSMS还可以用于开发我们的数据库项目,包括创建或修改数据库对象,以及查看然后修改存储在这些数据库中的数据。

What if you plan to run the database management and development tool on a macOS or Linux machine?

如果您计划在macOS或Linux机器上运行数据库管理和开发工具,该怎么办?

What should you do if most of the tasks that you need to perform are related to developing the database objects using T-SQL, sqlcmd, and PowerShell?

如果您需要执行的大多数任务与使用T-SQL,sqlcmd和PowerShell开发数据库对象有关,该怎么办?

Is there any way to export your data to different file formats with one click?

一键可将数据导出为不同的文件格式吗?

I need to connect to my SQL Server 2019 Big Data Cluster. How could I do that?

我需要连接到SQL Server 2019大数据群集。 我该怎么办?

In these cases, it is better to start using Azure Data Studio!

在这些情况下,最好开始使用Azure Data Studio!

Azure Data Studio is a light-weight cross-platform database development, and somehow administration, the tool that helps the data professionals to interact with their on-premises and cloud database instances from their Windows, macOS, or Linux based machines. It provides us with a modern SQL coding experience that is achieved by the rich query editor with the built-in IntelliSense, code snippets, and navigation features, and the ability to integrate the code projects with a GIT source control.

Azure Data Studio是一种轻型跨平台数据库开发,通过某种方式可以进行管理,该工具可帮助数据专业人员从其Windows,macOS或基于Linux的计算机与本地和云数据库实例进行交互。 它为我们提供了现代SQL编码体验,丰富的查询编辑器具有内置的IntelliSense,代码段和导航功能,并能够将代码项目与GIT源代码控件集成在一起,从而为我们提供了现代SQL编码体验。

Take into consideration that, if most of your tasks are related to the database administration, database security management and queries performance tuning, SQL Server Management Studio stay your preferred GUI tool.

请考虑到,如果您的大多数任务与数据库管理,数据库安全管理和查询性能调整有关,则SQL Server Management Studio仍是您首选的GUI工具。

Let us start with Azure Data Studio installation requirements and procedures.

让我们从Azure Data Studio安装要求和过程开始。

安装 (Installation)

Azure Data Studio can be installed to your machine to connect and interact with SQL Server instances with version 2014 and later that are hosted on your data centers, and the Azure SQL Database, Azure SQL Data Warehouse, and Azure SQL Managed Instance that is hosted on the cloud.

可以将Azure Data Studio安装到您的计算机上,以与数据中心中托管的2014版及更高版本SQL Server实例以及托管在其上的Azure SQL数据库,Azure SQL数据仓库和Azure SQL托管实例进行连接并进行交互云端。

If you plan to install that studio on your Windows machine, make sure that you are using the 64-bit version of Windows 7 and later. Installing it on the Windows servers is applicable for Windows Server 2008 R2 and later. Feel free to install that studio to the macOS Catalina, Mojave, High Sierra and Sierra machines, and the Red Hat, SUSE, and Ubuntu Linux machines.

如果打算在Windows计算机上安装该Studio,请确保使用的是Windows 7及更高版本的64位版本。 在Windows服务器上安装它适用于Windows Server 2008 R2和更高版本。 随时将该工作室安装到macOS Catalina,Mojave,High Sierra和Sierra机器以及Red Hat,SUSE和Ubuntu Linux机器上。

Azure Data Studio can be easily downloaded from the Microsoft Download center, based on the Operating system that you are using. For Windows machines, the User Installer is recommended as it requires no administrator privileges.

根据您使用的操作系统,可以从Microsoft下载中心轻松下载Azure Data Studio。 对于Windows计算机,建议使用用户安装程序 ,因为它不需要管理员权限。

Once downloaded, Azure Data Studio can be installed to your machine using the straight-forward installation wizard, in which you will be requested to accept the license agreement, specify the installation path, whether to create a folder for the tool shortcut under the start menu and finally configure several additional tasks for that tool. After installing the tool successfully, the wizard will notify you that the installation is completed without any issue and will ask you whether to launch the tool directly, as shown below:

下载完成后,可以使用直接安装向导将Azure Data Studio安装到您的计算机上,在该向导中,将要求您接受许可协议,指定安装路径,以及是否在开始菜单下为工具快捷方式创建文件夹。最后为该工具配置一些其他任务。 成功安装该工具后,向导将通知您安装已完成,没有任何问题,并询问您是否直接启动该工具,如下所示:

Azure Data Studio Installation Wizard

入门 (Getting Started)

If you launch Azure Data Studio, the first page that will be displayed is the Welcome page, which contains the main tasks that you can perform using that studio. This includes starting a new connection to the database instance, write a new query, create a new notebook, opening an existing file, creating a new deployment, and getting help from Microsoft regarding that tool.

如果启动Azure Data Studio,将显示的第一页是“ 欢迎”页面,其中包含可以使用该Studio执行的主要任务。 这包括启动与数据库实例的新连接,编写新查询,创建新笔记本,打开现有文件,创建新部署以及从Microsoft获得有关该工具的帮助。

The Welcome page also provides you with useful tips about how to customize the tool to meet your requirements and number of methods to dig deep in that tool.

欢迎”页面还为您提供了有关如何自定义工具以满足您的要求的有用技巧,以及在该工具中进行深入研究的方法数量。

Let us start with a simple task, which is connecting to an existing SQL Server instance. To connect to your SQL Server instance, click on the New Connection option from the Welcome page, as shown below:

让我们从一个简单的任务开始,该任务正在连接到现有SQL Server实例。 要连接到您SQL Server实例,请在Welcome页面上单击New Connection选项,如下所示:

Welcome page

In the New connection page, you will have an option to select from the recently used or saved connections or connect to a new SQL Server by providing the name of that SQL Server instance, the authentication type and the credentials that will be used to connect to that instance, with the ability to provide the name of the default database and server group that will be used in that connection, as shown below:

在“新建连接”页面中,您可以通过提供该SQL Server实例的名称,身份验证类型和将用于连接到的凭据的方式,从最近使用或保存的连接中选择或连接到新SQL Server。该实例,并能够提供将在该连接中使用的默认数据库和服务器组的名称,如下所示:

New Connection page

Azure Data Studio provides you with the ability to configure a large number of options that can be used to customize the connection to the specified SQL Server instance, as shown below:

Azure Data Studio使您能够配置大量选项,这些选项可用于自定义与指定SQL Server实例的连接,如下所示:

Advanced connection options

After providing all the required connection parameters, click on the Connect button and a connection will be established to the SQL Server instance.

提供所有必需的连接参数后,单击“ 连接”按钮,将建立到SQL Server实例的连接。

The first window that will be displayed is the Home page, that contains a summarized view for that SQL Server instance. This includes general information about the SQL Server version and edition, in addition to the name and OS version of the hosting machine.

将显示的第一个窗口是“ 主页” ,其中包含该SQL Server实例的摘要视图。 除了主机的名称和OS版本之外,这还包括有关SQL Server版本和版本的常规信息。

Other useful information that will be displayed includes an overview for the backup operations that are performed on the databases hosted on that SQL Server instance and the current size of each database, as shown below:

将显示的其他有用信息包括对在该SQL Server实例上承载的数据库执行的备份操作的概述以及每个数据库的当前大小,如下所示:

Server Home

The second view is the Databases page, that contains a detailed table of the list of databases that are hosted on that SQL Server, as shown below:

第二个视图是“ 数据库”页面,其中包含该SQL Server上托管的数据库列表的详细表,如下所示:

Databases View

The leftmost bar of that

该栏的最左侧

Data Studio contains a list of icons that summarize the main functionalities of that tool. These icons with a descriptive name for each icon can be briefly shown as below:

Data Studio包含一个图标列表,总结了该工具的主要功能。 这些带有每个图标描述性名称的图标可以简要显示如下:

Main Icons

The first icon is the Connections icon, similar to the Objects Explorer in SSMS, that is used to manage the current connections and establish new connections to the SQL Server instances, in addition to a complete view for the databases and objects that are hosted on each server, as below:

第一个图标是“ 连接”图标,类似于SSMS中的“ 对象资源管理器” ,用于管理当前连接并建立与SQL Server实例的新连接,此外还具有每个图标上承载的数据库和对象的完整视图。服务器,如下所示:

The second page is the Search page, that helps widely in searching for a specific phrase in all available files and folders, as shown below:

第二页是“ 搜索”页,可广泛帮助您在所有可用文件和文件夹中搜索特定短语,如下所示:

Search Page

The third page is the place where you can create and manage Notebooks within that studio. Notebooks are an open data format, that contains live code elements with the ability to embed different components, such as programs and images, inside them, as follows:

第三页是您可以在该工作室中创建和管理笔记本的地方。 笔记本是一种开放的数据格式,其中包含实时代码元素,这些代码元素可以在其中嵌入不同的组件(例如程序和图像),如下所示:

The fourth page is the files and folders Explorer that can be easily used to manage and arrange the different type of files that are used or saved within the tool, as below:

第四页是资源管理器中的文件和文件夹,可以轻松地用来管理和排列工具中使用或保存的不同类型的文件,如下所示:

Azure Data Studio allows you to connect to a valid Git repository that can be used as a Source Control for your code files and changes, as shown below:

Azure Data Studio允许您连接到有效的Git存储库,该存储库可用作代码文件和更改的源代码管理 ,如下所示:

To extend the default features that are available in that studio, you can easily install and use any available Extension that can help in customizing your coding or visualizing task, as below:

要扩展该工作室中可用的默认功能,您可以轻松地安装和使用任何有助于自定义编码或可视化任务的可用扩展 ,如下所示:

Extension

Azure Data Studio can be customized using a wide range of options that can be used to meet your requirements. This can be achieved by providing the proper value for each option from the Settings page, as shown below:

可以使用多种选项来自定义Azure Data Studio,这些选项可以用来满足您的要求。 可以通过在“设置”页面上为每个选项提供适当的值来实现,如下所示:

Settings page

For example, if you prefer using the Dark theme for that Data Studio, you can choose the suitable Color Theme from the Settings button, or easily from the Preference list under the File menu, as below:

例如,如果您希望为该Data Studio使用深色主题,则可以从“ 设置”按钮中选择合适的颜色主题 ,或者从 文件”菜单下的“ 首选项”列表中轻松选择,如下所示:

Color Theme

And the theme will be changed directly without the need to close the window, as shown below:

并且无需关闭窗口即可直接更改主题,如下所示:

Dark Theme

Azure Data Studio provides you with the ability to perform most of the data related tasks that you used to perform with the SSMS. For example, after connecting to a specific SQL Server instance and listing all available databasesunder that instance, right-click on your database and click the Manage option, as shown below:

Azure Data Studio使您能够执行过去用于SSMS的大多数数据相关任务。 例如,在连接到特定SQL Server实例并列出该实例下的所有可用数据库之后,右键单击您的数据库,然后单击“ 管理”选项,如下所示:

Manage Database

A new window will be displayed, that contains all database objects that are created under the selected database. On the same page, you can see general information about the database, such as the database owner, the recovery model, and the compatibility model for that database.

将显示一个新窗口,其中包含在所选数据库下创建的所有数据库对象。 在同一页面上,您可以查看有关数据库的常规信息,例如数据库所有者,恢复模型以及该数据库的兼容性模型。

If the database object that you manage to interact with is not shown directly in that window, you can easily search for it by providing the name, or part from the object name, then choose it from the displayed result.

如果您要与之交互的数据库对象没有直接显示在该窗口中,则可以通过提供名称或对象名称的一部分轻松地搜索它,然后从显示的结果中选择它。

Assume that we need to modify the data that is stored in one of the database tables. You can achieve that by right-clicking on that table, from the list, and choose the Edit Data option, as shown below:

假设我们需要修改存储在数据库表之一中的数据。 您可以通过右键单击列表中的表,然后选择“ 编辑数据”选项来实现此目的,如下所示:

Manage Database Objects

From the displayed result, specify the record that you plan to modify using the filters, modify the column value for that row then click on the Run button to refresh the data, as shown in the snapshot below:

从显示的结果中,指定您打算使用过滤器修改的记录,修改该行的列值,然后单击“ 运行”按钮以刷新数据,如下面的快照所示:

Modify Data

On the other hand, Select Top 100 options from the previous Manage Database objects window will allow you to retrieve the Top 100 records from that table, with the ability to modify the displayed query to customize the retrieved data, as below:

另一方面,从先前的“ 管理数据库对象”窗口中选择“前100个”选项将使您能够从该表中检索“前100个”记录,并能够修改显示的查询以自定义检索的数据,如下所示:

Select Top 100

And the last, but not least, option from the Manage Database objects window is Script as Create option, which can be used to generate the T-SQL script that can be used to create the selected database object, as shown below:

“管理数据库对象”窗口中的最后一个(但并非最不重要)选项是“ 脚本作为创建”选项,该选项可用于生成可用于创建所选数据库对象的T-SQL脚本,如下所示:

Script as Create

结论 (Conclusion)

In this article, I have tried to direct the light on the main functionalities of the Azure Data Studio tool in a way that makes it easy for you to start playing your database related project. Stay tuned for the next article in which we will dig deeper into that tool usage.

在本文中,我试图以一种使您可以轻松地开始与数据库相关的项目的播放方式来介绍Azure Data Studio工具的主要功能。 请继续关注下一篇文章,我们将在其中深入探讨该工具的用法。

翻译自: https://www.sqlshack.com/starting-your-journey-with-azure-data-studio/

azure 使用

azure 使用_使用Azure Data Studio开始您的旅程相关推荐

  1. sql azure 语法_在Azure Data Studio中计划SQL笔记本

    sql azure 语法 SQL Notebooks are an interactive way of creating documents, executing T-SQL queries alo ...

  2. sql azure 语法_使用Azure Data Studio从SQL Server数据创建图表

    sql azure 语法 In this article, we will explore charts in an Azure Data Studio using data stored in SQ ...

  3. sql azure 语法_使用Azure Data Studio开发SQL Server数据库

    sql azure 语法 In the previous article, Starting your journey with Azure Data Studio, we put the first ...

  4. sql azure 语法_在Azure Data Studio中学习用于SQL Notebook的Markdown语言

    sql azure 语法 Microsoft supports SQL Notebooks in Azure Data Studio. It is an exciting feature that a ...

  5. azure机器学习_使用Azure ML Studio的Azure机器学习简介

    azure机器学习 介绍 (Introduction) Let us see how Azure ML studio can be used to create machine learning mo ...

  6. sql azure 语法_使用Azure门户监视安装了SQL Server的Azure计算机

    sql azure 语法 介绍 (Introduction) In this new chapter, we will show how to use the Microsoft Portal to ...

  7. sql azure 语法_在Azure中使用SQL Server 2016 CTP3

    sql azure 语法 As the time of the release of the next version of SQL Server is closing in, the cycle o ...

  8. azure 使用_使用Azure的低成本灾难恢复解决方案

    azure 使用 We already talked a lot about Azure and hybrid deployments on this. In order to better unde ...

  9. azure上传代码_深入了解Azure Data Studio:更多代码和更少GUI

    azure上传代码 In the previous two articles, Starting your journey with Azure Data Studio and Developing ...

最新文章

  1. c# 泛型study
  2. 【Python学习系列十一】Python实现决策树实现C4.5(信息增益率)
  3. 【产品】阿里产品经理内训:能力模型解读
  4. boost::sloan_ordering用法的测试程序
  5. java学习(72):GUL流式布局管理器
  6. r语言 xmlto html,使用R语言将XML转换为CSV(示例代码)
  7. 线程实现的方式、多线程模型
  8. Ubuntu 14.10 下安装java反编译工具 jd-gui
  9. 机器人学导论 一、空间变换(1)位姿,变换
  10. Linux内核五个安全模块简述
  11. wps表格宏被禁用如何解禁_wps excel宏被禁用如何启用 - 卡饭网
  12. YDOOK:ESP8266 flash 工具 flash_download_tool_v3.8.5 下载安装教程
  13. SG Input 软件安全分析之逆向分析
  14. 八字算命网站源码技术细节解析:使用PHP和JAVA实现的MVC架构、MySQL数据库设计和功能模块介绍
  15. Monjes Budistas - Live Mantra(2008)[古典红底红花边]
  16. 群体Polymorphism information content(PIC)、 Nei diversity index (Nei s) 和 Shannon index (I)计算方法
  17. Python代码画喜羊羊怎么画_利用Python让你的命令行像蔡徐坤一样会打篮球
  18. 生物信息百Jia软件(22):featureCounts
  19. 【转】Mosquitto持久层群推消息实现思路
  20. 东师《构成设计基础》离线作业

热门文章

  1. python二维分布图怎么画_python3怎样画二维点图
  2. 使用Jquery中ajax实现上传文件
  3. Zabbix 配置钉钉脚本告警(4)
  4. 为什么SQL用UPDATE语句更新时更新行数会多3行有触发器有触发器有触发器有触发器有触发器有触发器...
  5. cut point and bridge总结
  6. UIViewController 之LoadView详解
  7. MVC控制器执行重定向
  8. ASP.NET高级配置Web.config和Machine.Config
  9. It's my life
  10. JS:ES6-1 let 关键字