Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Improved Resilience
Record Filtering
6
Select…
Rollback
7
select salary from
exec hr.viewsalary hr.payroll
hr.viewsalary hr.payroll
Audit Log
exec sp_audit_write
@user_defined_event_id
1234,
1, @succeeded
N‘Hello World’ @user_defined_info
Audit Log
CREATE SERVER AUDIT audit_name
TO { [ FILE (<file_options> [ , ...n ]) ] | APPLICATION_LOG | SECURITY_LOG }
[ WITH ( <audit_options> [ , ...n ] ) ]
[ FILTER = <predicate_expression> ]
}
…
<predicate_expression> ::=
{
[ NOT ] <predicate_factor> | {( <predicate_expression> ) }
[ { AND | OR } [ NOT ] { <predicate_factor> | ( <predicate_expression> ) } ]
[ ,...n ]
}
Workload 1 Workload 2 Workload 3 Workload 4 Workload 5
• 11 dbs, ranging • 2 dbs ranging from • 3 dbs ranging from • 1 db at 3235.75 MB • 1 db at 174.94 MB
from 1.94 MB to 64 MB to 423.88 MB 1.94 MB to 1059.63 • 84 tables with • 152 tables with
1812.5 MB. • 35 tables with MB average of 144,245 average of 4,108
• 755 tables with average of 49,141 • 154 tables with rows rows
average of 2761 rows average of 586 rows, • 3,435,303 stmts • 296,642 stmts
rows • 1,633,557 stmts Here is the activity executed. executed.
• 1,219,234 stmts executed • 585,400 stmts
executed. executed
Customer Workload Performance
Base Time (minutes) SQL Trace (minutes) SQL Server Audit (minutes)
101.9
76.6
68.1
63.4
55.9
41.3
Buffer
filled
Il-Sung
Lee I’m not a tweeter
mva
http://northamerica.msteched.com www.microsoft.com/learning
http://microsoft.com/technet http://microsoft.com/msdn