All Projects → spaghettidba → XESmartTarget

spaghettidba / XESmartTarget

Licence: MIT license
A configurable target for SQL Server Extended Events. Write to a table or perform custom actions with no effort.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to XESmartTarget

Packer
Packer helpers and templates for Docker, IIS, SQL Server and Visual Studio on Windows and Ubuntu
Stars: ✭ 242 (+266.67%)
Mutual labels:  sql-server
database
Joomla Framework Database Package
Stars: ✭ 25 (-62.12%)
Mutual labels:  sql-server
soddi
StackOverflow Data Dump Importer. Forked from https://bitbucket.org/bitpusher/soddi/ after the original author passed away.
Stars: ✭ 74 (+12.12%)
Mutual labels:  sql-server
DacFx
SQL Server database schema validation, deployment, and upgrade runtime. Enables declarative database development and database portability across SQL Server versions and environments.
Stars: ✭ 152 (+130.3%)
Mutual labels:  sql-server
MinimalApi
ASP.NET Core 7.0 - Minimal API Example - Todo API implementation using ASP.NET Core Minimal API, Entity Framework Core, Token authentication, Versioning, Unit Testing, Integration Testing and Open API.
Stars: ✭ 156 (+136.36%)
Mutual labels:  sql-server
ThrowawayDb
Dead simple integration tests with SQL Server or Postgres throwaway databases that are created on the fly, used briefly then disposed of automagically.
Stars: ✭ 137 (+107.58%)
Mutual labels:  sql-server
Tds fdw
A PostgreSQL foreign data wrapper to connect to TDS databases (Sybase and Microsoft SQL Server)
Stars: ✭ 238 (+260.61%)
Mutual labels:  sql-server
r2dbc-migrate
R2DBC database migration tool & library
Stars: ✭ 83 (+25.76%)
Mutual labels:  sql-server
e-commerce-backend
Shopping site backend which used Asp.Net Web API, JWT, Cache, Log, SqlServer, Entity Framework Core and N-Layer Architecture implementation.
Stars: ✭ 16 (-75.76%)
Mutual labels:  sql-server
Common
SQL FineBuild provides 1-click install and best-practice configuration on Windows of SQL Server 2019 through to SQL Server 2005
Stars: ✭ 32 (-51.52%)
Mutual labels:  sql-server
AlwaysEncryptedSample
Sample ASP.NET MVC Application for demonstrating Microsoft SQL Server Always Encrypted Functionality
Stars: ✭ 14 (-78.79%)
Mutual labels:  sql-server
community-presentations
Presentation Repository for SQL Server / PowerShell Presentations within the Community
Stars: ✭ 38 (-42.42%)
Mutual labels:  sql-server
metadata
oracle,mysql,sql server 元数据管理表生成
Stars: ✭ 45 (-31.82%)
Mutual labels:  sql-server
bizbook-server
The repository of bizbook server web api project
Stars: ✭ 45 (-31.82%)
Mutual labels:  sql-server
sp who3
The sp_who3 stored procedure is a custom and open source alternative to the sp_who system stored procedures available in SQL Server.
Stars: ✭ 49 (-25.76%)
Mutual labels:  sql-server
Sqlfiddle3
New version based on vert.x and docker
Stars: ✭ 242 (+266.67%)
Mutual labels:  sql-server
MsCoreOne
MsCoreOne is a simple Ecommerce with using many technologies such as .NET 5, Entity Framework Core 5, React 16.13 with modern Clean Architecture, Domain-Driven Design, CQRS, SOLID, Identity Server 4, Blazor. It will focus on resolving the problems always see in the process to develop projects.
Stars: ✭ 77 (+16.67%)
Mutual labels:  sql-server
SQLServerTools
This repo is the home of various SQL-Server-Tools
Stars: ✭ 28 (-57.58%)
Mutual labels:  sql-server
web-schedule-course
🚪 基于ASP.NET和SQL Server数据库开发的排课系统(web开发课程设计)
Stars: ✭ 40 (-39.39%)
Mutual labels:  sql-server
fullcalendar-aspnet-core
Implementation of FullCalendar in ASP.NET Core
Stars: ✭ 30 (-54.55%)
Mutual labels:  sql-server

XESmartTarget

XESmartTarget is the simplest way to write Extended Events data to a database table. But wait: there's more! XESmartTarget is the easiest way to process events without writing a single line of code!

XESmartTarget is a command line tool to help you working with SQL Server Extended Events. It offers the ability to perform custom actions in response to Events, in a way that is not possible by using the built-in targets.

While you are free to extend XESmartTarget with your own Response types, XESmartTarget does not require any coding. Instead, it can be configured with simple .json configuration files.

For instance, the following configuration file instructs XESmartTarget to connect to the server (local), hook to the Extended Events session test_session and forward all the events of type sql_batch_completed to a Response of type TableAppenderResponse, which will insert all events every 10 seconds into a table named test_session_data in the server (local), Database XESmartTargetTest, only the columns specified, only the rows with duration > 10000 microseconds.
It will also replay the sql_batch_completed events to the instance (local)\SQL2014 using the ReplayResponse Response type.

{
    "Target": {
        "ServerName": "(local)",
        "SessionName": "test_session",
        "Responses": [
            {
                //  JSON config files can contain comments
                "__type": "TableAppenderResponse",
                "ServerName": "(local)",
                "DatabaseName": "XESmartTargetTest",
                "TableName": "test_session_data",
                "AutoCreateTargetTable": true,
                "UploadIntervalSeconds": 10,
                "Events": [
                    "sql_batch_completed"
                ],
                "OutputColumns": [
                    "cpu_time", 
                    "duration", 
                    "physical_reads", 
                    "logical_reads", 
                    "writes", 
                    "row_count", 
                    "batch_text"
                ],
                "Filter": "duration > 10000"
            },
            {
                "__type": "ReplayResponse",
                "ServerName": "(local)\\SQL2014",
                "DatabaseName": "XESmartTargetTest",
                "Events": [
                    "sql_batch_completed"
                ],
                "StopOnError" : false
            }
        ]
    }
}

A complete description of all the setting you can control in the .JSON input file can be found in the Documentation.

Here is the output it produces: Screenshot 1

And here is the output it produces in the database: Screenshot 2

For the moment, the following Response types are available:

  • CsvAppenderResponse
  • EmailResponse
  • ExecuteTSQLResponse
  • ReplayResponse
  • TableAppenderResponse

New Response types are in the works, such as GroupedTableAppenderResponse (groups data before writing to a table). Suggestions for new Response Types are more than welcome.

Check out the Documentation for more information.

XelToCsv

XESmartTarget also includes a command line tool to convert .XEL files to .CSV.

Usage is very simple. Here's an example:

XelToCsv.exe -s c:\temp\events.xel -d c:\temp\events.csv

It's a Library!

XESmartTarget is a .dll that you can use in your project. Not sure how to use it? No problem, look at Program.cs in the XESmartTarget project. It's super easy.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].