Commit Graph
159 Commits
Author SHA1 Message Date
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 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
Jos de Bruijn 0a64c9aa45 typo 2018-01-02 14:25:42 -08:00
Jos de Bruijn 4b5bf1141a updating structure 2018-01-02 14:24:23 -08:00
Jos de Bruijn 5dceddfca7 adding data for last day 2018-01-02 14:18:01 -08:00
Jos de Bruijn adc4fc2156 adding initial power BI dashboards 2018-01-02 13:57:14 -08:00
Jovan Popovic (MSFT) 80080aa6d0 Merge pull request #350 from JocaPC/master
Updated WWI Website views
2017-12-30 19:49:29 +01:00
Jovan Popovic 0f2549927e Updated WWI Website views 2017-12-30 19:47:04 +01:00
Jovan Popovic (MSFT) fb82385f53 Merge pull request #341 from JocaPC/master
Corrected error in FLGP Xevent samples
2017-12-14 22:35:42 +01:00
Jovan Popovic 9242ae326a Added new view in WebSite schema 2017-12-14 22:34:17 +01:00
Jovan Popovic (MSFT) 0c303e11f0 Merge pull request #335 from JocaPC/master
Integrated FLGP demo into WWI database
2017-11-22 22:56:44 +01:00
Jovan Popovic a52d12d049 Integrated FLGP demo into WWI database
Added changes required to run Automatic tuning FLGP demo in WWI database.
1. Added new package type "Unknown" for one order line
2. Added one order line in the "Unknown" package
3. Updated AT demo script to work with WWI database.
4. Included PackageTypeID column in NCCI on OrderLines table.

Minor
1. Added .gitignore file for the local folder
2. Updated UI page for AT demo.
2017-11-22 13:13:44 +01:00
Barbara Kess bfdb1a4d9f Install notes 2017-11-07 12:22:25 -07:00
Barbara Kess 078b12f887 Updates from Jos 2017-11-07 12:08:14 -07:00
Barbara Kess 228cc448f9 updates 2017-11-06 19:45:31 -07:00
Barbara Kess 8262683e03 updates 2017-11-06 17:37:35 -07:00
Jos de Bruijn 5c5adbc1b1 comment about differences between AdventureWorks versions. 2017-11-06 14:02:25 -08:00
Umachandar Jayachandran ab944915ae Revert "Revert "Merge branch 'master' of https://github.com/Microsoft/sql-server-samples""
This reverts commit e2a931b529.
2017-10-31 14:46:40 -07:00
Umachandar Jayachandran e2a931b529 Revert "Merge branch 'master' of https://github.com/Microsoft/sql-server-samples"
This reverts commit 3f46586c05, reversing
changes made to 1ac5b86724.
2017-10-30 21:34:14 -07:00
Barbara Kess 9a5a5dddc3 update readme 2017-10-27 11:51:55 -07:00
Barbara Kess 5a8205bfad remove unnecessary files 2017-10-27 11:19:13 -07:00
Barbara Kess 1e7f65e1ab script fixes 2017-10-27 11:01:17 -07:00
Barbara Kess 93af6aca57 AdventureWorks install script 2017-10-26 19:49:32 -07:00
Barbara Kess 7ae229779f data warehouse install script 2017-10-26 15:25:57 -07:00
Barbara Kess 912fdaf999 Update version in script, remove build csv file 2017-10-20 11:46:00 -07:00
Barbara Kess 62b20497b4 Script for installing AdventureWorksDW2016 2017-10-19 18:02:09 -07:00
Barbara Kess e64e3441ca 2016 OLTP Script 2017-10-19 17:29:04 -07:00
Barbara Kess 9ef4e956d2 fix adventureworks link 2017-10-19 14:30:30 -07:00
Barbara Kess d11d1af019 add AdventureWorks2016 2017-10-19 14:26:03 -07:00
Barbara Kess b7011bd8d6 fix cr-lf in phonenumbertype 2017-10-05 11:49:42 -07:00
Barbara Kess 1df4bc3fcd fix typo 2017-09-29 18:32:50 -07:00
Barbara Kess 3ea582931c Add link for AS 2017-09-29 18:28:05 -07:00
Barbara Kess 90e0fcfd44 Install instructions 2017-09-29 18:23:54 -07:00
Barbara Kess c77b462607 adventure-works source files 2017-09-29 15:59:48 -07:00
Barbara Kess 1d8d87ebdf add link to AW downloads 2017-08-02 17:38:28 -07:00
Barbara Kess d783cf8a02 install instructions 2017-07-31 20:01:45 -07:00