* wwi revision from Robert Cain * added .sln files * adding publish.xml files for ssdt projects * correct DB names in publish.xml * renaming project names to align with DB names * removing redundant config procs from OLAP DB; adding version table * moving full-text indexing to post-deployment script * updated SampleVersion, and added version to post-deployment script * aligning start date with v1 start date * reduce rowcount to accomodate low-end systems * fixing T-SQL syntax error * fixing T-SQL syntax issue * aligning naming of SSIS package with v1 * update RLS sample to work with v2 of wwi City IDs are no longer hard-coded * updating DB names for SSIS * aligning publish name with DB name * updating DB settings * aligning DB name * improved perf for coldroomtemperature Improved process, such that all data for a given day is generated as a single native proc execution, which accumulates the data in a non-durable table. this data is then bulk-moved to the archive table, before adding the most recent data to the current table. * aligning names of memory_optimized_data filegroups * updated filegroups in project files * commenting ApplyPolyBased from post-deployment deployment of the SSDT project should not fail if connection with the Azure storage account cannot be established. Therefore, applying the PolyBase piece to the sample DB is something the user needs to do after deploying the DB. * removing ApplyPolybase from post-deployment * aligning DB set options * cleaning up FTS artifacts * aligning data source name * facilitating publication to azure - removing explicit filegroup references from index definitions - adding snapshot hints to references for memory-optimized tables, to facilicate publication in DBs without the MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT hint * initial updated docs for OLTP DB * initial documentation for WideWorldsImportersDW * docs for SSIS package * initial documentation for SSASMD project * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * adding Azure SQL DB sections to docs * Update README.md * Update README.md * cleaning up local solution files - cleaning up bad references in local solution files - calling out SSAS and SSIS dependencies more explicitly in the READMEs * replacing inner join to BuyingGroups with LEFT JOIN Fixing logical error in the integration proc. Not all customers are in buying groups. * removing redundant reference to release * correction around Azure deployment * corrections around Azure deployment * Update README.md * Update README.md * Update README.md * clarified how 2012 data is generates * Update README.md * minor updates * implementing PR comments * Update README.md * Update README.md * clarifying VS2017 caveats * adding caveat for VS2017 * caveat for VS2017 * removing stale file reference * removing stale folder * adding DB option to post-deployment scripts for Azure SQL DB purposes * fixes for migration Azure SQL Premium->Standard * fixes for enabling/disabling In-Memory OLTP * renaming to avoid confusion * aligning project structure with best practice - aligning SSAS DB name with others
SQL Server Samples Repository
This GitHub repository contains code samples that demonstrate how to use Microsoft's SQL products including SQL Server, Azure SQL Database, and Azure SQL Data Warehouse. Each sample includes a README file that explains how to run and use the sample.
Note that certain features like In-Memory OLTP are edition specific for SQL Server and would be possible to implement if the edition which supports that feature is being used to run the sample.
Releases in this repository
Releases allow you to conveniently download sample databases or applications without the need to build them from source code. This SQL Server samples repository has the following notable releases:
- Wide World Importers sample database v1.0 is the main sample for SQL Server 2016 and Azure SQL Database. It contains both an OLTP and an OLAP database.
- In-Memory OLTP Performance Demo v1.0 illustrates the performance benefits of the In-Memory OLTP technology built into SQL Server and Azure SQL Database.
- IoT Smart Grid sample v1.0 illustrates how SQL Server can be leveraged to ingest data from IoT devices and sensors, and how you can run analytics on that data.
To see the complete list of resources in this repository, navigate to Releases
Working in GitHub
To work in GitHub, go to https://github.com/microsoft/sql-server-samples and fork the repository. Work in your own fork and when you are ready to submit to make a change or publish your sample for the first time, submit a pull request into the master branch of sql-server-samples. One of the approvers will review your request and accept or reject the pull request.
Each sample should be in its own folder with a README.md file that follows the template. Generated files (e.g., .exe or .bacpac) and user configuration settings (e.g., .user) should not be committed to GitHub.
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
License
These samples and templates are all licensed under the MIT license. See the license.txt file in the root.
Questions
Email questions to: sqlserversamples@microsoft.com.