Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Alpesh Patel is working on Various Microsoft Products (Visual Studio 6.0/2005/2008, SQL Server 2005/2008, BI Tool etc)

Administrators

Browse by Tags · View All
SQL Server 9
SSIS 5
#SQLServer 4
#BI 3
BI 3
SSRS 3
SQL Server 2012 2
TSQL 2
Integration Service Catalog 1
Master Data Service 1

Archive · View All
September 2011 3
December 2012 2
October 2011 2
August 2012 1
July 2012 1
February 2012 1
November 2011 1
August 2011 1

Alpesh Patel's Blog

Auditing in SQL server

Oct 31 2011 6:54AM by Alpesh Patel   

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days.
Lets' understand the Audit to know the usage of data and operation on data.
Please follow the steps below and make sure Audit is not available in Standard and Express edition of SQL Server.
Note: Server Audit Configuration will find at Server=> Security=>Audit
and
Database Audit Configuration will find at Server=> Database=> Security=> Database Audit Specification
1. Set the Proper Audit name and Select the Audit location type, (File, Security and Application Log etc.)

Audit-Server.png (104 KB) (File Type Details)

Server Setting

Audit-Server

Based on the Audit type may you have question why audit is not at SQL Table level? A simple answer is when audit is enabled and change is recorded then again due to the insertion of that log cyclic insertion occur. that's why audit is not available to save in SQL table.
2. Audit Type is selected as File then select the folder path.

Audit Type.png (72 KB) (File Type Details)

Audit Location

AuditType

3. Same thing you can create for Server Audit Specification.

Server-specification.png (156 KB) (File Type Details)

Server Audit Specification

Servver-specification

In this step you have predefined options provided by SQL and you can use any of that for your purpose.
i.e If you want to change the permission to data etc. Please make sure you can find the Server and Database level actions.
4. Create Audit Action on particular object (Database objects like Table, View etc.)

Database-specification.png (181 KB) (File Type Details)

Database Specification

DAtabase-specification

5. Select Option from Action drop down and before that Select the Audit source as shown in below image.

Audit-Table.png (56 KB) (File Type Details)

Object Config

Audit-Table

That's it for Configure the Server/Database Audit.
Let's see the result of Audit how can we see the result of audit. Who has viewed the data, updated data or deleted data etc. etc.
For, this SQL provide the Management function to read the Audit files and give result step by step.

SELECT * FROM fn_get_audit_file(
'H:\PefLogs\Audit-Failed Login_6A8681AA-5555-4EA9-AA18-D18A552E1ACF_0_129216903300500000.sqlaudit'
,default
,default)

After executing this log you can get the result as below:

Untitled.png (22 KB) (File Type Details)

Result

Untitled

Thanks,

Alpesh

Tags: TSQL, #SQLServer, SQL Server, #TSQL,


Alpesh Patel
36 · 5% · 1663
0
Liked
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

1  Comments  

  • Native SQL auditing has come a long way though there are areas where the native logging falls short which is why we've developed the SQL Server Change Reporter. It will detect not only table and database changes but also security settings and more. http://www.netwrix.com/sqlserverauditchangereporterfreeware.html

    Chris Rich Product Manager NetWrix Corporation NetWrix is #1 for Change Auditing and Compliance: Simple, Lightweight, Affordable

    commented on Nov 8 2011 7:55AM
    christopherm
    2895 · 0% · 2

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]