sql-server-profiler

A couple of basic Sql Profiler questions

删除回忆录丶 提交于 2019-12-24 04:11:53
问题 (Sorry for the longish question, I'll try to be concise.) I'm running SQL Server Profiler and I'm chasing down some performance issues. I'm relatively new to what the profiler does and I've exported the traces into a table so I can run queries against the data. One thing I've been running up against is some seemingly odd behavior doing select queries against the TextData field of the table generated by the trace export. It may have to do with the field's data type (ntext, null). I'm selecting

How to monitor transaction isolation level changes in SQL Profiler or in any other tool

ⅰ亾dé卋堺 提交于 2019-12-24 03:10:33
问题 I've successfully only been able to see transaction isolation level events in the Audio Login event. Are there any other ways to monitor the transaction isolation level changes using SQL Profiler or using some other tool? The reason I ask is because SQL Profiler does not seem to be able to output the events in the right order or it skips events because when setting the IsolationLevel to Serializable in my app it still shows transaction isolation level read committed . Example Audit Login in

Show Row Count in SQL Profiler

吃可爱长大的小学妹 提交于 2019-12-23 08:35:51
问题 Is it possible to show a "Row Count" column in SQL Server Profiler? For example there are CPU and Duration columns but can it show how many rows a query returns? 回答1: How about using the RowCounts column? 回答2: For SQL Server 2008 R2 : From the top menu: Tools -> SQL Server Profiler Choose the Server name: The Trace Properties dialog will appear. Click on the Events Selection tab: Click on the Show all columns check box Slide the horizontal scroll bar to the right. Check the boxes under the

SQL Profiler Templates Missing - additional repair steps?

Deadly 提交于 2019-12-22 14:54:53
问题 I have the issue where SQL Profiler Templates are not being found, I am using an install of SQL Server Profiler 10.0.1600.22, and I am connecting to 2008 R2 remotely. So I am aware of the "fix" whereby you can copy the templates folder from 100 to 1050 in the same directory. ie. http://www.mattbutton.com/2011/06/01/sql-profiler-templates-missing/ But this is still not showing my templates in SQL Server Profiler. What additional steps can I take to restore the default templates? Do I need to

How to find timed out statements in SQL 2005 profiler

丶灬走出姿态 提交于 2019-12-21 12:18:45
问题 I'm trying to find SQL statements that timed out using the SQL 2005 profiler. Is there a way to set such a filter? 回答1: In Profiler, you can add the event "Attention" under "Errors and Warnings". It's definition is Collects all attention events, such as client interrupt request or when a client connection is broken. As far as other errors (deadlocks, contraints, etc), try "Execution Warning" (reports warning that occurred during the execution of SQL statement or procedure) or "User Error

Is there a way in SQL profiler to filter by INSERT statements?

家住魔仙堡 提交于 2019-12-21 07:13:59
问题 I am trying to identify SQL INSERTS that occur when a record is viewed from a Windows application. In SQL Profiler I have a long list of stored procedures that fire when the record is viewed, however it is very cumbersome to identify the stored procedure then locate the inserts, then find the stored procedure in the object explorer (even with filters). Is there a way for me to see all SQL commands on a line item instead of a stored procedure? And then filter by INSERT statements? Thanks for

NHibernate taking a long time to run query

回眸只為那壹抹淺笑 提交于 2019-12-21 05:19:25
问题 This is being done using Fluent NHibernate I've got a NHibernate lookup that is retrieving data from one table. If i take the generated sql and run it through query analyzer, it takes ~18ms to run. Using NHProfiler, i'm getting the duration of this query as ~1800ms - 100 times longer than sql ! Query duration - Database only:1800ms - Total: 1806ms The object that is being populated contains a child class, but this child is being loaded from the NHibernate 2nd level cache The data that is

How to trace with SQL Server profiler [closed]

那年仲夏 提交于 2019-12-20 06:21:24
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . i am trying my hands on SQL server profiler i would like to know how to trace using SQL server profiler. any link with apprpiate GUI will be more then helpfull. 回答1: Steps: SQL Server Management Studio Go to MS

C#, sp_executesql and Incorrect Syntax

血红的双手。 提交于 2019-12-19 19:45:02
问题 I'm calling the code below. On the line (IDataReader dr = cmd.ExecuteReader()) sql barfs with an Incorrect syntax near 'CompanyUpdate'. using (SqlCommand cmd = new SqlCommand("CompanyUpdate")) { cmd.Parameters.Add("@CompanyID",SqlDbType.Int); cmd.Parameters.Add("@Description",SqlDbType.VarChar,50); cmd.Parameters["@CompanyID"].Value = companyid; cmd.Parameters["@Description"].Value = description; SqlConnection cn = new SqlConnection("Data Source=[datasource];Initial Catalog=dotNext;User ID=

How do I get parameter values for SQL Server query in SQL Server Profiler

99封情书 提交于 2019-12-18 07:29:42
问题 I'm trying to analyze a deadlock in SQL Server 2008 profiler. I know how to find the offending sql queries, but the collected queries do not include parameter values. I other words I can see something like this: DELETE FROM users WHERE id = @id But what I would like to see is this: DELETE FROM users WHERE id = 12345 I guess there are some additional events or Columns I need to collect in the profiler, but I don't know which. I am currently using the "TSQL_LOCKS" template. Any hints would be