{"id":18777900,"url":"https://github.com/ststeiger/sql_profiler","last_synced_at":"2025-06-13T21:04:38.207Z","repository":{"id":80744838,"uuid":"119972574","full_name":"ststeiger/sql_profiler","owner":"ststeiger","description":"Microsoft SQL-Server Profiler (command-line) for Linux/Mac/Windows (works over ssh)","archived":false,"fork":false,"pushed_at":"2019-03-14T15:15:40.000Z","size":54,"stargazers_count":35,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T11:40:46.876Z","etag":null,"topics":["dotnet-core","linux","mac","profiler","sql-server","sql-server-database","sql-server-management-studio"],"latest_commit_sha":null,"homepage":"https://github.com/ststeiger/ExpressProfiler","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ststeiger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-02T11:15:32.000Z","updated_at":"2024-11-15T22:52:44.000Z","dependencies_parsed_at":"2023-03-10T21:30:15.063Z","dependency_job_id":null,"html_url":"https://github.com/ststeiger/sql_profiler","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ststeiger/sql_profiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ststeiger%2Fsql_profiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ststeiger%2Fsql_profiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ststeiger%2Fsql_profiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ststeiger%2Fsql_profiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ststeiger","download_url":"https://codeload.github.com/ststeiger/sql_profiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ststeiger%2Fsql_profiler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259719716,"owners_count":22901237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet-core","linux","mac","profiler","sql-server","sql-server-database","sql-server-management-studio"],"created_at":"2024-11-07T20:14:16.011Z","updated_at":"2025-06-13T21:04:38.169Z","avatar_url":"https://github.com/ststeiger.png","language":"C#","readme":"﻿\n# MS-SQL-Server command line profiler  ![Travis-CI Status](https://travis-ci.org/ststeiger/sql_profiler.svg?branch=master) ![AppVeyor Status](https://ci.appveyor.com/api/projects/status/2s9x1armpbam5nnx?svg=true)\n\n\nsql_profiler is a simple and fast replacement for SQL Server Profiler. \u003cbr /\u003e\nIt's a .NET-Core command-line port of ExpressProfiler, and runs everywhere .NET Core runs. \nSo it runs on \n- Windows (x86-32, x86-64)\n- Linux (x86-64, ARM-32)\n- Mac/OS-X. \n\nIt's a fork of [ExpressProfiler](https://github.com/OleksiiKovalov/expressprofiler) for MS-SQL-Server ([actually a fork of a slightly modified version](https://github.com/ststeiger/ExpressProfiler) - working datetime-format for any language). \u003cbr /\u003e\nI used it to port ExpressProfiler to .NET Core (command-line).\n\n\nsql_profiler can be used with both Express and non-Express editions of SQL Server 2005/2008/2008r2/2012/2014.\u003cbr /\u003e\nInstallation or administrative rights are not required. \u003cbr /\u003e\nTrace permission are required for the SQL-user.\u003cbr /\u003e\n\n\n**Invocation**\n```bash\n./sql_profiler --server {computername\\instance} --username WebAppWebServices --password TOP_SECRET --db \"The DB you want to profile\";\n```\n\nor from the project:\n\n```bash\ndotnet run sql_profiler --server {computername\\instance} --username WebAppWebServices --password TOP_SECRET --db \"The DB you want to profile\";\n```\nIf you omit the username, it will attempt to connect with integrated security.\n\n[![Windows-Console-Profiler: This is Sparta !][1]][1]\n\n[![Linux-Console-Profiler: This is Sparta !][2]][2]\n\n\n\n**Grant rights:** \n\n\n```sql\n\n-- To Grant access to a Windows Login\nUSE Master;\nGO\nGRANT ALTER TRACE TO [DomainNAME\\WindowsLogin]\nGO\n\n-- To Grant access to a SQL Login\nUSE master;\nGO\nGRANT ALTER TRACE TO manvendra\nGO\n\n```\n\n[(source)](https://www.mssqltips.com/sqlservertip/3559/how-to-grant-permissions-to-run-sql-server-profiler-for-a-non-system-admin-user/)\n\n\n### Standalone Building\n\n**Build for Windows x86-64:**\n\u003e dotnet restore -r win-x64\u003cbr /\u003e\n\u003e dotnet build -r win-x64\u003cbr /\u003e\n\u003e dotnet publish -f netcoreapp2.0 -c Release -r win-x64\u003cbr /\u003e\n\n**Build for Windows x86-32:**\n\u003e dotnet restore -r win-x86\u003cbr /\u003e\n\u003e dotnet build -r win-x86\u003cbr /\u003e\n\u003e dotnet publish -f netcoreapp2.0 -c Release -r win-x86\u003cbr /\u003e\n\n\n**Build for Linux x86-32:**\n\u003e **not supported by framework**\n\n**Build for Linux x86-64:**\n\u003e dotnet restore -r linux-x64\u003cbr /\u003e\n\u003e dotnet build -r linux-x64\u003cbr /\u003e\n\u003e dotnet publish -f netcoreapp2.0 -c Release -r linux-x64\u003cbr /\u003e\n\n\n**Build for Linux ARM-32 (Raspberry PI/Chromebook/Android):**\n\u003e dotnet restore -r linux-arm\u003cbr /\u003e\n\u003e dotnet build -r linux-arm\u003cbr /\u003e\n\u003e dotnet publish -f netcoreapp2.0 -c Release -r linux-arm\u003cbr /\u003e\n\n**Build for Linux ARM-64:**\n\u003e **not supported by framework**\n\n\n**Build for Mac OSX x86-32:**\n\u003e **not supported by framework**\n\n**Build for Mac OSX x86-64:**\n\u003e dotnet restore -r osx-x64\u003cbr /\u003e\n\u003e dotnet build -r osx-x64\u003cbr /\u003e\n\u003e dotnet publish -f netcoreapp2.0 -c Release -r osx-x64\u003cbr /\u003e\n\nMac build requires MacOS \u003e= Sierra (10.12+)\n\n\n\n# Future:\n**Build for Android (arch?):**\n\u003e dotnet restore -r android\u003cbr /\u003e\n\u003e dotnet build -r android\u003cbr /\u003e\n\u003e dotnet publish -f netcoreapp2.0 -c Release -r android\u003cbr /\u003e\n\n\n[List of RIDs][3]\n\n\n\n  [1]: https://i.stack.imgur.com/IgYvq.png\n  [2]: https://i.stack.imgur.com/hEaFY.png\n  [3]: https://docs.microsoft.com/en-us/dotnet/core/rid-catalog\n","funding_links":[],"categories":["SQL Server Web Resources"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fststeiger%2Fsql_profiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fststeiger%2Fsql_profiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fststeiger%2Fsql_profiler/lists"}