Wrox Programmer Forums
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 23rd, 2007, 09:36 AM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Automating SQL Profiler

The powers at be have decided that they would like to automatically run a trace on one of our analysis servers when it processes a cube in the early hours of the morning. Now I have no problem creating a SQL Profile to run and store the results in a database table for them, but I have no idea how to automate it so that it runs everyday, any help would be greatly appreciated.

 
Old January 24th, 2007, 02:38 PM
Authorized User
 
Join Date: Dec 2006
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

SQL 2005 contains a utility called SQLDIAG. It has the ability start and stop given specific date time information. You can also collect Windows perf, event logs, and a nice blocking script that will record blocking over time. SQLDIAG replaced PSSDIAG, that was geared toward previous versions. The BOL contains basic information on the utility. WARNING: SQLDIAG has the ability to collect massive amounts of information that can degrade performance. Make sure you collect as little as necessary to diagnose the issue.

Adam Gossage
Lake Wylie, SC, USA





Similar Threads
Thread Thread Starter Forum Replies Last Post
Profiler and procedure calls joxa83 SQL Server 2005 0 September 9th, 2008 03:41 AM
VBA memory profiler mvick VB How-To 1 September 27th, 2006 03:08 PM
Automating File Posting [email protected] Pro VB.NET 2002/2003 1 June 27th, 2005 02:02 PM
question on automating a procedure boksi VB.NET 2002/2003 Basics 6 February 15th, 2005 06:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.