SQL 示例SQL samples

适用于: SQL Server Azure SQL 数据库 Azure Synapse Analytics 并行数据仓库

Microsoft SQL 产品的示例数据库和代码示例的位置。Locations of sample databases and code samples for Microsoft SQL products.

SQL 示例存储库SQL samples repository

Microsoft SQL Server 示例GitHub 存储库中提供了适用于 SQL 产品的代码示例。Code samples for SQL products are in the Microsoft SQL Server samples GitHub repository. 每个示例都包含一个自述文件,说明如何运行和使用示例。Each sample includes a README file that explains how to run and use the sample. 示例存储库的主要自述文件介绍了如何参与。The main README for the samples repository explains how to contribute.

示例和模板都是在 MIT 许可证下授权的。The samples and templates are all licensed under the MIT license. 请参阅根目录中的 license.txt 文件。See the license.txt file in the root.

将电子邮件发送给: sqlserversamples@microsoft.com 。Email questions to: sqlserversamples@microsoft.com.

WideWorldImporters 示例数据库WideWorldImporters sample database

WideWorldImporters (WWI) 是一个示例数据库,它使用当前功能、工具和设计方法展示数据库设计。WideWorldImporters (WWI) is a sample database that showcases database design using current features, tools and design techniques. WideWorldImporters 下载包含 OLTP 和 OLAP 数据库,生成这些数据库是为了在2016和更高版本 SQL Server 上运行。WideWorldImporters downloads include an OLTP and an OLAP database which are built to run on SQL Server 2016 and later.

数据库下载和示例位于 GitHub 存储库 SQL ServerThe database downloads and samples are in the SQL Server samples GitHub repository.

AdventureWorks 示例数据库AdventureWorks sample database

可以在 安装 页上或直接在 SQL Server 示例 GitHub 存储库中找到 AdventureWorks 数据库。AdventureWorks databases can be found on the installation page or directly within the SQL Server samples GitHub repository.

Azure 示例和模板Azure samples and templates

在 Github 上的 .NET、Java、Python、Node.js、PHP 和 Ruby 中提供了许多 Microsoft Azure 代码示例和示例。There are a number of Microsoft Azure code samples and examples available on Github in .NET, Java, Python, Node.js, PHP and Ruby. 此外,Azure 资源管理器允许使用声明性模板预配应用程序。Additionally, Azure Resource Manager allows you to provision your applications using a declarative template. 在单个模板中,可以部署多个服务及其依赖项。In a single template, you can deploy multiple services along with their dependencies. 在应用程序生命周期的每个阶段,可使用相同模板重复部署应用程序。You use the same template to repeatedly deploy your application during every stage of the application lifecycle.