W607 Review of SQL Profiler Pre-requisites: Basic knowledge of SQL One of our most popular sessions at previous conferences, this class offers a complete look at SQL Profiler. Being instructed in SQL 2005, you'll see this graphical tool that allows system administrators to monitor events that occur in their SQL database. This session is designed to help distributors understand the benefits and details of using this tool. Discussion will include the specifics of utilizing the different settings in profiler to hone your results. Ron Schorr Quality Assurance Wednesday, 3:45 p.m. 2 Session Objectives SQL Profiler can be used to view all SQL statements being passed between the Prophet 21 application and the database SQL Query Analyzer can be used to interpret the statements from the profiler and convert them into data These tools are essential for understanding the inner workings of the Prophet 21 application
3 Session Objectives Reviewing the SQL in profiler can help you determine the code to use for reports and data queries Help you understand which tables are used for different purposes 4 SQL Profiler Where do you find SQL Profiler? SQL Server Profiler can be selected from the SQL Server 2005 menu Performance Tools Profiler can also be accessed via the tools menu in SQL Server Management Studio
5 SQL Profiler Connect to SQL server SQL authentication or Windows authentication System Admin rights are required 6 SQL Profiler Trace Properties Select template and/or trace name
7 SQL Profiler Trace Properties Select events to display TSQL Stored Procedures Starting or completed 8 SQL Profiler Trace Properties Select columns to display Text data Login name Database name Application DB reads Duration
9 SQL Profiler Trace Properties Filter out unwanted data Specify login Specify DB Any column 10 SQL Profiler Trace Template Allows you to set up most common elements and save for re-use
11 SQL Profiler Trace Results Shows the data activity in the system 12 SQL Profiler Trace Results Highlight row to show full statement below
13 Query Analyzer Run Query You can cut and paste from Profiler to run 14 Return on Investment Opportunity These tools and processes allow you to solve problems quickly and reduce downtime Powerful tool for understanding performance concerns Creates a portal to your data and increases understanding of the application Access to more information allows you to make more informed decisions
15 Suggested Action Plan Run Profiler wide open and look at the traffic Apply filters and events to make the data more meaningful to you When reporting issues, try to include a trace if you feel it contains information about your process or transaction 16 Additional Resources SQL Server Books Online http://support.microsoft.com/default.aspx?scid=fh ;EN-US;pwebcst (Microsoft WebCasts) Educational Services - MS SQL Server 2005 Coming in June Customer Web Site - Data Dictionary http://wdncustomer.activant.com/datadictionary/ default.aspx Inside SQL 2005 4 volumes (various authors)
17 Summary SQL Profiler is the most powerful tool for understanding the inner workings of the Prophet 21 application Profiler and Query Analyzer may be used to determine the data returned to the application Using these tools can greatly enhance your ability to solve problems and reduce downtime Great tool for writing reports 18 Thank You for Attending W607 Review of SQL Profiler Ron Schorr Please submit the Session Feedback Form To receive NASBA credits, please be sure to complete the Session Feedback Form and sign the class roster in the back of the room
Session Feedback Form Summit 2007 Las Vegas, NV Please take a moment to evaluate this session and offer feedback. Activant uses your input to understand your needs and to determine future Summit sessions. Session Name: Session Number: Presenter s Name: How important is this topic to your job/company? 1 2 3 4 5 Not Important Important Please rate the educational value you received from this session. 1 2 3 4 5 Low Value High Value 1. What software are you currently using? 2. How long have you personally used this software? 3. Describe the effectiveness of your instructor. 4. What is your overall evaluation of this session? 5. What could have been done to improve this session? 6. What sessions would you like to see presented at future conferences? 7. What issues will be critical to your business in the next 12-24 months? Check here if you would like CPE credits. To receive credits, be sure to sign your name at the bottom of this form and sign the roster in the session room. Answering the following questions is OPTIONAL (but required for CPE Credits). Yes No Did this session meet your expectations, based on the description/objectives in the registration materials? Were the pre-requisite requirements stated in the course description appropriate? Did the session materials contribute to achieving the learning objectives? Did the equipment (screen, microphone, projector, etc.) in the room enhance the instruction? Was the time allotted for the session appropriate for the topic? Name: Company: E-mail: