P
P
PetrovSerega2013-04-01 12:25:01
SQL
PetrovSerega, 2013-04-01 12:25:01

SQL query analysis

Hello!

Prompt in what ways it is possible to try to analyze SQL requests regarding their "typicality".
For example, "request1" and "request2" are normal for the system, while "request3" is suspicious.
To begin with, I think to consider only the simplest select queries and use their statistics - how often, which tables, which columns.

What algorithms can be tried to solve this problem?
Maybe there are some similar (partially solved) tasks where one could peep something?

UPD: The question is not how to collect statistical data for analysis, but how to conduct this very analysis?

UPD2: I was looking for something similar - www.moluch.ru/conf/tech/archive/5/1085/ .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Alisov, 2013-04-01
@alan008

In SQL Server Management Studio, on the server in the tree, right-click -> Reports -> Standard Report and then there are a lot of interesting things (Performance - Package execution statistics, Performance - Queries with the highest average CPU time, etc.). You can also use SQL Server Profiler to catch either all queries at all, or queries that meet some special configured conditions (for example, lasting more than 1 second).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question