Jovan Popovic f67895ac75 Adding WWI WebSite views/procedures (#367)
* Added WWI Website views and procedures

Added new views and procedures for WWI WebSite:
1. Views that expose main entities
2. Create, Update, and Delete procedures for WWI tables.

* Added Website views/proc into sql project

* Refactored Web APi procedures and views

* Update DeleteStateProvince.sql

* Fixing style on views

Added quoted identifiers everywhere.

* Added quoted identifiers on WebApi views

* Removed refactor log from project

* Addressing UC's comment

changed INSERTED to inserted
SearchForStockItems uses correct view in webApi schema

* Removed unnesecary alias in SalesOrders view

* Fixed bugs in SpecialDeals and Customers

Added columns in customers view.
Changed parameter name in SpecialDeals procedure.

* Added quoted identifier_on in insert customer/supplier transactions and missing columns in purchase order lines view.

* Added row-level security

* Added wrapper views for some simple entities.

* Added missing fields in suppliers view/procedure

* Handled NULL columns and some missing columns in views.

* Removed useless quoted identifier on

* Changed quoted identifier on two update customer/supplier transactions stored procedures.
2018-04-06 14:40:55 +02:00
2017-03-15 11:04:31 -07:00
2016-03-25 16:52:44 -07:00
2017-10-05 11:15:09 -07:00

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:

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.

Cloning only a subset of the repo (with sparse checkout)

You can follow the steps below to clone individual files from the sql-server-samples git repo. Note: The following script clones only the files under the features and demos folders.

git clone -n https://github.com/Microsoft/sql-server-samples.\sql-server-samples
cd sql-server-samples
git config core.sparsecheckout true
echo samples/features/*| out-file -append -encoding ascii.git/info/sparse-checkout
echo samples/demos/*| out-file -append -encoding ascii.git/info/sparse-checkout
git checkout

For more information about sparse checkout please visit this stackoverflow thread.

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.

S
Description
Mirror of official Microsoft GitHub Repository containing code samples for SQL Server
Readme
504 MiB
Languages
Markdown 100%