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);
* 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.
* Added some media for incoming demos on SQL Graph database
* Added the file README.md and the first demo of the session SQL Server 2017 Graph Database that I have done at SQL Saturday Parma 2017 #sqlsat675
* Fixed a bug in SQL text visualization
* Deleted some Unicode characters
* Update file README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md added the demo "Build a sample recommendation system using SQL Graph"
* Added the file sqlsat675 40 Recommendation system.sql that contains source code of the demo "Build a sample recommendation system using SQL Graph"
* Update README.md
* Added the file sqlsat675 30 Many-to-many relationships.sql
* Delete folder sql-saturday-675-parma-italy
* Add folder recommendation-system
* Rename files
* Update README.md
* Update README.md
* Update media file related to SQL Graph demos
* Used function JSON_VALUE instead of OPENJSON to extract the first language of a Person
* Update README.md
* Update README.md
* Update README.md
* Update README.md