|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 8:55 AM
Points: 307,
Visits: 743
|
|
| trying Server side trace with standard template (with additional columns included), but the trace stops after 5MB. How to increase this default size to say 20MB and also enable rollover to next file in case, the max limit is reached?
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 7:51 AM
Points: 37,738,
Visits: 30,010
|
|
In the script that creates the trace, you can set the file size. If I recall, it's defined in a variable right at the beginning of the script.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 8:55 AM
Points: 307,
Visits: 743
|
|
| yes saw where to give that file size and rollover. thanks. But when observing the trace using the ::fn.... I see that a single SPID gets repeated more than 200 times with a millisecond difference in time. We are using an VB based front end in which there may be around 200 users using that. In Activity Monitor, I see only one task/SPID against that username whereas the trace contains more than 200 records with same SPDI? I dont understand it. Can u demystify this?
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Friday, September 21, 2012 1:52 PM
Points: 696,
Visits: 743
|
|
Does your VB process use a single login to the database or pass the user's login credentials through to the database? You may need to capture this information inside the VB as part of the transactional processes, or require adding auditing to the VB application.
If the process is web-based, is there a web.config file that authenticates to the database? If so, then VB owns the problem, not the database.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 12:47 PM
Points: 165,
Visits: 155
|
|
Try this:::
declare @maxfilesize bigint exec @rc = sp_trace_create @TraceID output, 0, N'c:\InsertFileNameHere', @maxfilesize, NULL
-- Please replace the text InsertFileNameHere, with an appropriate -- filename prefixed by a path, e.g., c:\MyFolder\MyTrace. The .trc extension -- will be appended to the filename automatically. If you are writing from -- remote server to local drive, please use UNC path and make sure server has -- write access to your network share
--Ron
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 12:47 PM
Points: 165,
Visits: 155
|
|
Oooppss.
Forgot one piece... AM I RED
set @maxfilesize = 20
--Ron
|
|
|
|