Commit Graph
193 Commits
Author SHA1 Message Date
Jovan Popovic 19d49ada31 Merge branch 'master' of https://github.com/JocaPC/sql-server-samples 2020-01-15 23:48:22 +01:00
Jovan Popovic fcf1acac00 Updated WWi App 2020-01-15 23:47:14 +01:00
Jovan Popovic 73a418a2ba Merge branch 'master' into master 2019-11-11 13:29:09 -08:00
Jovan Popovic cb0fbc41f9 Generate yaml in WWI App 2019-05-17 13:33:00 +02:00
Jovan Popovic bac04d554b Improved yaml for WWI App 2019-05-17 13:32:22 +02:00
Umachandar Jayachandran 24d177b82c Merge branch 'master' of https://github.com/paschott/sql-server-samples into paschott-master 2019-01-29 15:25:36 -08:00
Umachandar Jayachandran 8c384a736c Merge pull request #510 from AyoOlubeko/patch-4
Updating factexchangerate staging table name
2019-01-29 14:42:17 -08:00
Ayo Olubeko e514e63247 Removed erraneous backticks 2019-01-18 12:02:33 -08:00
Ayo Olubeko 1406690ae6 Updating factexchangerate staging table name 2019-01-18 11:51:25 -08:00
Marc Prud'hommeaux b9646e2624 Remove spurious whitespace 2018-12-17 20:27:25 -05:00
Jovan Popovic (MSFT) 7477f64871 Merge pull request #485 from JocaPC/master
Updating Create JumpboxVm for Managed Instance
2018-11-11 13:20:12 +01:00
Jovan Popovic 1c25f3cbd1 Adding YAML definition in WWI OData services 2018-11-08 09:35:49 +01:00
Jovan Popovic (MSFT) e5c680724e Merge pull request #480 from artyl/master
Fix for sp_dboption in northwind-pubs if sqlversion>=12
2018-11-05 13:21:07 +01:00
Jovan Popovic (MSFT) 8d9bf0c2b8 Merge pull request #481 from JocaPC/master
WWI App - FrontEndController split into two classes
2018-11-03 08:39:10 +01:00
Jovan Popovic 97947786ad WWI App - FrontEndController split into two classes 2018-11-03 08:37:31 +01:00
Artem Lavrenov 65c27abe8a Fix for sp_dboption in northwind-pubs if sqlversion>=12 2018-11-02 23:08:34 +03:00
Douglas Laudenschlager c464da1830 Make Northwind & pubs scripts available with sample databases. 2018-11-01 11:14:56 -07:00
Jovan Popovic 9451da7fbf Returned original intervals that generate data sample 2018-10-25 20:44:50 +02:00
Jovan Popovic 0de0fe0cbc Fixed tabs in Azure functions 2018-10-25 18:14:00 +02:00
Jovan Popovic f34c505c8f Updated to MsSql.RestApi 0.4 2018-10-25 17:33:34 +02:00
Jovan Popovic 80745912bc Fixing ReturnedDeliveryData in WebApi.Invoices 2018-10-24 07:24:34 +02:00
Jovan Popovic 59ee08205a Adding WWI Azure Functions Microservice 2018-10-23 23:13:16 +02:00
Jovan Popovic b7973d02e4 Updated WWI Application 2018-10-22 15:43:00 +02:00
Meet Bhagdev 61a1a6ab2b Update Gemfile.lock 2018-10-12 19:18:49 +02:00
Jovan Popovic 986298a12e Updating StockItem history
Added post-deployment script that updates StockItem history table with lineary increasing prices and lineary decreasing taxes and lead times.
2018-10-12 15:52:19 +02:00
Jovan Popovic 067ac68bf0 Added meta-data required to generate API 2018-10-05 23:58:14 +02:00
Jovan Popovic 463d14d78c Added missing columns in WebApi.Suppliers 2018-10-05 23:29:17 +02:00
Jovan Popovic c7675d9055 Merge branch 'master' into wwi-app 2018-10-05 22:02:39 +02:00
Jovan Popovic c947a27203 Fixed RLS predicate in dublocated code
Added access to WebApi in the duplicated RLS predicate
2018-10-05 22:01:33 +02:00
Jovan Popovic aafabb193a Added Application Name in connection string 2018-10-05 21:10:46 +02:00
Jovan Popovic fba6570047 Merge branch 'master' into wwi-app 2018-10-05 17:24:29 +02:00
Jovan Popovic 68fb8e7be5 Adding permissions to WebApi user 2018-10-05 00:34:33 +02:00
Peter Schott 4c7f20b4b4 Removing all files in .gitignore 2018-10-03 17:59:52 -05:00
Umachandar Jayachandran d2a9938d28 Merge pull request #436 from JocaPC/master
Adding Application.Logs WWI sample (CCI/LOB sample)
2018-10-01 10:04:11 -07:00
Umachandar Jayachandran b1ab7b22c5 Merge pull request #386 from AyoOlubeko/patch-2
Updating sql file to include data load for factexchangerate table
2018-10-01 10:03:02 -07:00
Jovan Popovic 90b1e81c38 Updated columns
Removed Id column that it is not required.
Replaced types for Message and Level with the smaller type.
2018-09-16 23:19:45 +02:00
Jovan Popovic cf21a42db7 Addressed UC's comments 2018-09-10 16:30:22 +02:00
Jovan Popovic 59fea19b50 Corrected DSP 2018-09-07 16:56:03 +02:00
Jovan Popovic 828dd93d1e Adding Application.Logs WWI sample
Added a table required to demo LOB support in CLUSTERE COLUMNSOTRE INDEXes.
Scenario is application logging. Applicaiton pushes log events that have large descriptions into the LOB column in CCI table. Table is compliant wiht Serilog logger for .Net and can be direclty used as a target for MSSQL Serilog sink:

In applicaition should be added the following changes to integrate serilog:
1. Download Serilog and Serilog.MSSQL.sink NuGet packages
2. Add the following packages:
using Serilog;
using Serilog.Sinks.MSSqlServer;

3. Configure logger:
var columnOptions = new Serilog.Sinks.MSSqlServer.ColumnOptions();
// Don't include the Properties XML column.
columnOptions.Store.Remove(StandardColumn.Properties);
columnOptions.Store.Remove(StandardColumn.MessageTemplate);
columnOptions.Store.Remove(StandardColumn.Exception);
// Do include the log event data as JSON.
columnOptions.Store.Add(StandardColumn.LogEvent);

var logger = new LoggerConfiguration()
                .WriteTo
                .MSSqlServer(   ConnString, "Logs", schemaName: "Application",
                                autoCreateSqlTable: false,
                                columnOptions: columnOptions
                                )
                .CreateLogger());

4. Log events:
var position = new { Latitude = 25, Longitude = 134 };
var elapsedMs = 34;

log.Information("Processed {@Position} in {Elapsed:000} ms.", position, elapsedMs);
log.Error(new IndexOutOfRangeException("Test"), "Error while processing {@Position} in {Elapsed:000} ms.", position, elapsedMs);
2018-09-07 16:10:10 +02:00
Jovan Popovic 0d558be099 Adding WWI Back Office App v1 2018-04-14 16:25:11 +02:00
Jovan Popovic 6c917e2766 Update SupplierID in WebApi/UpdatePurchaseOrderFromJson.sql 2018-04-14 16:09:52 +02:00
Jos de Bruijn 94e56cb753 clarify that you need to install from source code 2018-04-13 08:40:47 -07:00
Ayo Olubeko c447b2931b Create readme.md 2018-04-08 19:29:50 -07:00
Ayo Olubeko 5de07659a1 Adding sql polybase load tutorial file 2018-04-08 19:25:44 -07:00
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
Ayo Olubeko f794790bbd Updating sql file to include data load for factexchangerate table 2018-03-30 12:15:26 -07:00
Ayo Olubeko d6ca3faee0 Updating documentation to include ctas for factexchangetable 2018-03-30 12:09:57 -07:00
Jos de Bruijn 108e094905 fix per issue #379 2018-03-20 07:57:41 -07:00
Jos de Bruijn 6629ed9066 updating sqlproj with new file 2018-01-03 15:13:00 -08:00
Jos de Bruijn 0ee360c7f4 adding variation to sales order counts 2018-01-03 15:03:12 -08:00