Solved

Auditing in Azure SQL Database

Posted on 2016-11-23
3
83 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

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 50

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL DATEADD 10 88
Re-appearing SQL Server Agent jobs 7 46
SQL Select Query help 1 49
SQL Server remove line breaks and tabbed 2 26
Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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