Solved

Auditing in Azure SQL Database

Posted on 2016-11-23
3
63 Views
Last Modified: 2016-11-24
hi experts

i am reading about Auditing in Azure SQL Database in
https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-auditing-get-started

what's the mean?:
Plain SQL ?
Parameterized SQL ?
Transaction Management?

this complete text:
Only database events may be audited (success and/or failure):
.Plain SQL
.Parameterized SQL
.Stored Procedure
.Login
.Transaction Management
0
Comment
Question by:enrique_aeo
3 Comments
 
LVL 8

Assisted Solution

by:Jason clark
Jason clark earned 125 total points
ID: 41900102
Parameterized SQL in this place holder are used for place holder and parameter value is passed at the time of execution.
Transaction Management means assuring the data integrity and consistency.
Plain SQL are the simple code used when there is a situation your self written code is not supported at higher level abstraction. Here, prefer Plain SQL query instead of going to low level.
0
 
LVL 28

Assisted Solution

by:Pawan Kumar
Pawan Kumar earned 125 total points
ID: 41900104
Try..

.Plain SQL -- Simple SQL Query without parameters and variables
.Parameterized SQL - SQL Query with parameter. Parameters will be passed at the run time when you execute it.
.Stored Procedure - It is an object with multiple SQL statements.
.Transaction Management - Transaction management - maintain the ACID properties of a transaction.

For details ACID properties - https://msdn.microsoft.com/en-in/library/aa480356.aspx
0
 
LVL 48

Accepted Solution

by:
Vitor Montalvão earned 250 total points
ID: 41900212
Only database events may be audited (success and/or failure):
Plain SQL - Will audit all T-SQL commands that aren't parameterized (e.g. SELECT id, name FROM MyTableName WHERE active = 1)
Parameterized SQL - Will audit all T-SQL commands that are parameterized, i.e. where it has the existence of variables (e.g. SELECT id, name FROM MyTableName WHERE active = @Active)
Stored Procedure -  - Will audit all call of Stored Procedures (e.g. EXEC sp_mySpName)
Login -  - Will audit all logins into the database (e.g. User 'abc' logged in at 11-11-2016 10:30:22)
Transaction Management  - Will audit all transactions blocks (e.g. BEGIN TRANSACTION .. END TRANSACTION)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tempdb log contention 16 50
MSSQL Speen Degradation 4 31
Trying to get a Linked Server to Oracle DB working 21 69
query optimization 6 14
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question