In molti casi, lo statement SQL viene invece fissato, ed ogni parametro è quindi uno scalare, e non una tabella.
In many cases, the SQL statement is fixed, and each parameter is a scalar, not a table.
La cosa che mi piace di questo programma è che rende semplice l'interazione con il database ma non nasconde gli statement SQL.
What I like about this program is that it makes it easy to interact with the database but does not hide the SQL statement.
Scrivere statement SQL può essere difficile quando non si ha familiarità con nomi di tabelle e di colonne.
Writing SQL statements can be difficult when you are not familiar with the table and column names.
Il client deve preprocessare solo la testata dello statement SQL oppure usare'?
The client should preprocess only the head of the SQL statement or use'? '
Questo può accadere, ad esempio, quando viene utilizzato un campo numerico in uno statement SQL, ma il programmatore non fa controlli per verificare che l'input immesso dall'utente sia effettivamente numerico.
This could take place when a numeric field is to be used in an SQL statement, but the programmer makes no checks to validate that the user supplied input is numeric.
Questo può accadere, ad esempio, quando viene utilizzato un campo numerico in uno statement SQL, ma il programmatore non fa controlli per verificare che l'input immesso dall'utente sia effettivamente numerico.
This could take place when a numeric field is to be used in a SQL statement, but the programmer makes no checks to validate that the user supplied input is numeric.
La pagina con la vulnerabilità potrebbe non essere una che mostra dei dati, ma può essere visualizzata differentemente a seconda del risultato dello statement di tipo logico iniettato dentro lo statement SQL originale, chiamato per quella pagina.
The page with the vulnerability may not be one that displays data but will display differently depending on the results of a logical statement injected into the legitimate SQL statement called for that page.
Tuttavia, se un utente malintenzionato scrive la variabile "userName" in un certo modo, lo statement SQL può fare più di quello che era inteso dall'autore del codice.
However, if the "userName" variable is crafted in a specific way by a malicious user, the SQL statement may do more than the code author intended.
In pgAdmin clicchiamo sull'icona che apre la finestra in cui è possibile eseguire i propri statement SQL.
In pgAdmin click on the icon that opens the window in which we can run SQL statements.
Come possiamo vedere dall'immagine seguente, dopo aver eseguito il comando, in Visual Studio si apre un nuovo tab contenente lo statement SQL da eseguire
As we can see from the following image, after executing the command, Visual Studio opens a new tab containing the SQL statement to run
Nel comando SQL precedente abbiamo il nostro termine di ricerca, Task 1'TEST; e possiamo vedere come l'apice in esso contenuto completi lo statement SQL.
In the SQL command above we have our search term, Task 1'TEST; and we can see that the quote in the search term completes the SQL statement.
Statistiche sulle Query: raccoglie dati sugli statement SQL ed i relativi piani di esecuzione campionando alla frequenza di 10 secondi alcune viste di gestione dinamica (Dynamic Management Views, da ora in poi DMV).
Query statistics: collects data on SQL statements and their execution plans sampling every 10 seconds some Dynamic Management Views (from now DMV).
La pagina con la vulnerabilità potrebbe non essere una che mostra dei dati, ma può essere visualizzata differentemente a seconda del risultato dello statement di tipo logico iniettato dentro lo statement SQL originale, chiamato per quella pagina.
The page with the vulnerability may not be one that displays data but will display differently depending on the results of a logical statement injected into the legitimate SQL statement called for that page.