MSSQL 2008 SELECT TRIGGER, Policy-Based Management

by Nurgün Özgür 16. December 2009 17:12

Bu yazımda Microsoft'tan uzun zaman beklediğimiz ve MSSQL 2008 ile gelen bir özellik tanıtmaya çalışacağım.

2005 kadar bir tabloda SELECT çeken kullanıcıyı bulmak zordu ve genelde view ve diğer security yöntemlerle erişim kısıtlanıyordu.

MSSQL 2008 de gelen PBM bize artık bir tabloyu kim ve ne zaman SELECT ettiği bilgisini DB bazında verebiliyor. 

 

Örnek:

1. Audit yaratlım ve log klasörünü belirleyelim.

 

USE master

CREATE SERVER AUDIT Test_Audit TO FILE (FILEPATH='\\AuditServer\AuditLog')

 

2. Audit SPEC yaratlım böylece nelerin log edileceğini belirtiyoruz.

USE CompanyDb

CREATE DATABASE AUDIT SPECIFICATION Test_Audit_dbspec FOR SERVER AUDIT Test_Audit

ADD(SELECT,DELETE  ON dbo.Salary by dbo)

 

3. Audit'i başlatalım

USE master

ALTER SERVER AUDIT Test_Audit WITH (STATE=ON)

 

4. Audit SPEC'i de başlatalım


USE CompanyDb

ALTER DATABASE AUDIT SPECIFICATION Test_Audit_dbspec WITH (STATE=ON)

 

5. Audit ve SPEC özelliklerini buradan inceleyebiliriz.

 

SELECT * FROM sys.server_file_audits

SELECT * FROM sys.database_audit_specifications

 

Kolay gelsin


 

Tags: , , ,

MS SQL

Comments

5/16/2010 8:26:51 AM #

Cheap Computers

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon... Regards…

Cheap Computers United States | Reply

5/18/2010 1:18:05 PM #

pingback

Pingback from 347.animejin.com

1995 Dodge Spirit Radiator Fan, Spirit Discount Ramcharger Dodge Stratus

347.animejin.com | Reply

5/27/2010 9:22:51 AM #

Designer handbags

It is such an important topic and ignored by so many, even professionals. супер проститутки Москвы

Designer handbags United States | Reply

5/28/2010 4:36:23 AM #

Tillie Scholin

I'm a huge lover of your blog! Check out my website, You can check your weblog there!

Tillie Scholin Norway | Reply

5/29/2010 3:56:14 AM #

driveway gates london

I was wondering if you ever considered changing the layout of your blog?  Its very well written; I love what youve got to say.  But maybe you could a little more in the way of content so people could connect with it better.  Youve got an awful lot of text for only having one or two images.  Maybe you could space it out better?

driveway gates london United States | Reply

5/30/2010 1:40:40 AM #

www.bulkdomainnews.com

I am a huge fan of your blog! Check out my website, You can analyze your blog here!

www.bulkdomainnews.com Norway | Reply

5/30/2010 2:15:20 AM #

Merchant Account

I was wondering if you ever considered changing the layout of your blog?  Its very well written; I love what youve got to say.  But maybe you could a little more in the way of content so people could connect with it better.  Youve got an awful lot of text for only having one or two images.  Maybe you could space it out better?

Merchant Account United States | Reply

5/30/2010 3:00:03 PM #

guru blueprint bonus

I like this post.

guru blueprint bonus United States | Reply

5/31/2010 4:15:03 AM #

designer handbags

Thank you for sharing your knowledge and I look forward to seeing more.

designer handbags United States | Reply

5/31/2010 4:47:58 AM #

www.proverkadomenov.ru

I am a huge fan of your weblog! Check out my website, You can submit your blog there!

www.proverkadomenov.ru Norway | Reply

6/2/2010 8:08:02 AM #

Personal Trainer

Thanks for the info, well done.

Personal Trainer United States | Reply

6/2/2010 5:21:30 PM #

Haarentfernungen

You have inspired me, i have to write something about MSSQL ve Oracle Blog  on my site.

Haarentfernungen United States | Reply

6/3/2010 5:15:09 AM #

Wein Muller

The topic MSSQL ve Oracle Blog is totally new for me, but it´s very interesting. I will read more about this topic and make me my own opinion. Thanks, Wein Muller

Wein Muller United States | Reply

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Nurgün Özgür

Facebook

 

Nurgün Özgür Photo

1993'ten bu yana profesyonel olarak yazılım ve sistem yönetimi konularında çeşitli yerli ve yabanci kuruluşların farklı kademelerinde aktif olarak yer aldım. 2011 yılında emekliliğe ayrıldım.

 

Valid XHTML 1.0 Transitional


Tag cloud


Facebook ile giriş