Solved

AutoStart SQL Profiler

Posted on 2008-10-16
1
585 Views
Last Modified: 2008-11-07
Hi,
Does anybody know how to schedule an SQL Profiler Trace, save to File?
Or how to automatically start a trace when an event occurs such Transactions / Sec > 10?
0
Comment
Question by:coolrod_de
1 Comment
 
LVL 60

Accepted Solution

by:
chapmandew earned 125 total points
Comment Utility
Yep.  Here is what you do...create your trace in profiler like you would when you run it by hand.  Export the trace definition to a file.  Take what is in that file and create a stored procedure.  Have SQL server run that stored proc on startup.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now