Skip to content

Commit 207d8e2

Browse files
author
Me
committed
Edited readme
1 parent b1046e9 commit 207d8e2

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,26 @@ So it runs on
99
It'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). <br />
1010
I used it to port ExpressProfiler to .NET Core (command-line).
1111

12+
1213
sql_profiler can be used with both Express and non-Express editions of SQL Server 2005/2008/2008r2/2012/2014.<br />
1314
Installation or administrative rights are not required. <br />
1415
Trace permission are required for the SQL-user.<br />
1516

1617

18+
**Invocation**
19+
```bash
20+
./sql_profiler --server {computername\instance} --username WebAppWebServices --password TOP_SECRET --db "The DB you want to profile";
21+
```
22+
23+
or from the project:
24+
25+
```bash
26+
dotnet run sql_profiler --server {computername\instance} --username WebAppWebServices --password TOP_SECRET --db "The DB you want to profile";
27+
```
28+
If you omit the username, it will attempt to connect with integrated security.
29+
30+
31+
**Grant rights:**
1732

1833

1934
```sql
@@ -35,6 +50,8 @@ GO
3550
[(source)](https://www.mssqltips.com/sqlservertip/3559/how-to-grant-permissions-to-run-sql-server-profiler-for-a-non-system-admin-user/)
3651

3752

53+
### Standalone Building
54+
3855
**Build for Windows x86-64:**
3956
> dotnet restore -r win-x64<br />
4057
> dotnet build -r win-x64<br />

sql_profiler/Program.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,11 @@ public static string GetPlatformDefaultInstance()
280280

281281
static void Main(string[] args)
282282
{
283-
MainTest(args);
284-
// DoProfiling(args);
283+
// MainTest(args);
284+
DoProfiling(args);
285+
286+
System.Drawing.Color.
287+
285288
}
286289

287290
static void MainTest(string[] args)

0 commit comments

Comments
 (0)