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


Upload Image Close it
Select File

SQLSailor - Personal Notes on Microsoft SQL Server

Browse by Tags · View All
SQL Server 2012 35
General 13
News/Updates 10
Windows Azure 7
HA Solutions 7
Cool Features 4
Connect Items 4
SQL Azure 4
Powershell 4
PASS 3

Archive · View All
January 2012 17
April 2012 11
March 2012 11
June 2012 9
May 2012 9
August 2012 6
September 2012 5
July 2012 5
March 2013 4
February 2013 3

Anup Varier's Blog

max_files column for sys.traces – When can it have NULL value

Apr 18 2012 12:00AM by Anup Warrier   

Today there was an interesting question on max_files column value which is available under sys.traces view object.The question was like this  -

max_files in sys.traces is 0 and that means zero, not NULL – correct?

Before we get into the details,I would like to mention that the max_files column means the maximum number of rollover files.When we create a trace we have the option to enable file roll over,which simply means that if the first trace file size is set as 5MB,then after reaching that limit sql profiler will create another file to continue capturing the trace.This will continue until and unless the trace is stopped.

Now,can ever this max_file value be NULL ? Yes,after research I found that this value will be NULL if the is_rollover flag is set as 0(Ie,we dont choose enable file rollover when creating the trace)

 

select max_files,is_rollover,id AS Trace_ID from sys.traces
WHERE id <>1 --Filer DefaultTrace

 

Another interesting fact is related to default trace.The default trace max_file value is 5 and max_size is 20 and this cannot be changed.

Thanks for reading.



Republished from SQLSailor [47 clicks].  Read the original version here [2 clicks].

Anup Warrier
208 · 1% · 224
1
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

"max_files column for sys.traces – When can it have NULL value" rated 5 out of 5 by 1 readers
max_files column for sys.traces – When can it have NULL value , 5.0 out of 5 based on 1 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]