Questions tagged [trace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

What is the use of trace captured via Profiler?

I am learning about capturing trace via profiler. I understand that the purpose of capturing trace via profiler is to log events happening on the sql server without impacting performance, because ...
user avatar
  • 2,130
0 votes
1 answer
27 views

XE ucs package events

Can anybody explain for what purposes exists ucs package {C0AB75C5-B1EA-445B-B7DF-F897686F94E7} "Extended events for Unified Communications Stack" I have tried to catch some events like ...
user avatar
0 votes
1 answer
47 views

How can I turn on session trace in SQLPLus?

I've managed to start SQLPlus and have logged in successfully. I can run queries but I can't trace any of them since when I input @settrcon and it gives me the error SP2-0310: unable to open file &...
user avatar
0 votes
1 answer
385 views

SQL profiler not showing incoming parameters of store procedure

My Task When user updates some values on the front end UI of an application, I want to know which SQL table/fields are updated, which SQL statements were executed, etc. My method Using SQL profiler, I ...
user avatar
1 vote
2 answers
141 views

Server side tracing for SQL Server Analysis Services

We are looking to continuously run server side trace on Analysis Services and record its output in a table in database in the Database Services. There are tons of articles showing server side trace ...
user avatar
  • 159
1 vote
1 answer
52 views

RECOVERY MODEL changed on a database, no record in Default Trace [closed]

I have a Log backup job running every hour via SQL Agent. This morning it failed at 3:00 AM with this error: The statement BACKUP LOG is not allowed while the recovery model is SIMPLE. But it ran fine ...
user avatar
0 votes
1 answer
42 views

How to get syntax and logical ORA in a trace file?

there is an application with tons of queries and one of them cause ORA-1722 To check: I turn trace on session like: alter session set events '10046 trace name context forever, level 12' and say to ...
user avatar
4 votes
1 answer
376 views

Problem with enabling System Audit (Firebird's Trace and Audit Services)

I would like to enable System Audit on my Firebird 2.5.9.27139 (x64) database (Windows 10), to inspect all queries performed on it. I've already read some docs about what the configuration file should ...
user avatar
0 votes
1 answer
329 views

How to Get All Server Side Traces in SqlServer from SSMS, stop it from SSMS and delete the log files

How to Get All Server Side Traces in SqlServer from SSMS(Active,Inactive), stop it from SSMS and delete the log files. I need all traces saving into file as well as table. I tried SELECT * FROM ...
user avatar
0 votes
2 answers
310 views

What triggers the SSRS to generate a log file or modify a current one?

When running a trace on my new SSRS Reporting Services 2016, after troubleshooting some problems related to migrating from SSRS 2008, I find the following pattern running continuously: Here is the ...
user avatar
2 votes
1 answer
307 views

What is the impact of MAX_DISPATCH_LATENCY while configuring EXTENDED EVENT?

By default, MAX_DISPATCH_LATENCY is set to 30 seconds. I chose FILE as a target and write all captures there. I thought that if I write all captures into file, why would then I lower down ...
user avatar
  • 1,163
1 vote
1 answer
114 views

fn_trace_gettable() reports an error

The following code returns some rows with [Error] = 2 SELECT v1.[name] as EventName, tr.TextData, tr.HostName, tr.ApplicationName, tr.LoginName, tr.SPID, tr.Duration, tr.StartTime, tr.EndTime, tr....
user avatar
1 vote
2 answers
560 views

how to find out how long the last DBCC checkdb took to complete?

In most of my servers I have dbcc checkdb scheduled to run. I can get the last known good DBCC Checkdb through DBCC DBINFO(). I can read the tracks left on the sql server log and I get something ...
user avatar
0 votes
1 answer
96 views

Chronological list of statements from Oracle trace

I'm using a trace in Oracle (11.2) to elucidate the behavior of a client application, and would like to view a list of all of the SQL statements that it submits, in the order in which they were ...
user avatar
6 votes
1 answer
502 views

Mysterious procedure calls without parameters - but no exceptions generated

I've been tracing a handful of stored procedures with EventClass RPC:Completed that are intermittently called from .Net SqlClient Data Provider without required parameters - just "exec SprocName". ...
user avatar
  • 63
3 votes
0 answers
95 views

Why execution plan could be skipped from XE session?

Got an issue, similar to this one: Why does SQL Server Profiler trace not capture SELECT operator in execution plans?. There was an advice to use XE instead of Trace, but it does not help. Thing is, ...
user avatar
  • 75
0 votes
1 answer
52 views

Find "Mystery processes" on a MS SQL Sever environment? (SSIS, databases, etc) [closed]

I inherited a collection of Instances/ MS SQL Databases/ SSIS scripts on a server. I am now the interim "accidental DBA." I thought I was familiar with everything there, but apparently not. It's all ...
user avatar
  • 1,493
3 votes
1 answer
11k views

Find queries executed by an user in sql server

I want to find all the queries executed by an particular user in a database over a period of time. I learnt about trace and XEvents, but these are not setup yet, Will i be still able to get the ...
user avatar
  • 131
2 votes
1 answer
63 views

How do I keep a SQL Server Profiler trace from jumping to the bottom entry?

When monitoring a trace in SQL Server Profiler, is there a way to prevent it from jumping to the most recent event without pausing the trace? I'm often trying to scroll up and read descriptions of ...
user avatar
  • 148
2 votes
0 answers
317 views

fn_trace_gettable empty default trace rollover files

For some time now I've been using fn_trace_gettable to automatically collect and report certain events on the server. Function is being called with following parameters: ::fn_trace_gettable('C:\...
user avatar
  • 395
0 votes
1 answer
4k views

Check all enabled trace events [duplicate]

Recently on a database I enabled trace for event 12842 using the below statement in order to trace Oracle error ORA-12842 : Invalidated cursor. alter system set events '12848 trace name ERRORSTACK ...
user avatar
0 votes
2 answers
34 views

How can I track if a trace is executing?

I'm sure there's a trace here running and creating logs. I have no idea who did this in the past ( Its here since my first day in this company ). There's no trace of it on sp_whoisactive. Activity ...
user avatar
  • 7,100
2 votes
1 answer
3k views

How to trace a query on Firebird?

With SQL Server we can trace for a period of time, to get what queries are running. How can I do this with Firebird? I'm reading something on their website but there's only user trace like if the ...
user avatar
  • 7,100
1 vote
1 answer
986 views

SQL Server Trace Stopped Messages Displaying Random Login Name

When traces are started and stopped we get messages similar to the following in the SQL Server error log: SQL Trace ID 2 was started by login "DOMAIN\loginA". and SQL Trace stopped. Trace ID = ...
user avatar
  • 931
0 votes
1 answer
34 views

SQL tracking number of Selects of a databases table row [closed]

Hello I'm trying to create a way in which I could track the number of times a certain column in a database table is selected. Is there something I could implement like a trigger that could increment a ...
user avatar
1 vote
2 answers
2k views

how to use is_srvrolemember to list all server roles of a user

For dealing with server permissions I am currently using a procedure called sp_SrvPermissions V6.0 by Kenneth Fisher thank you Kenneth, however, while running a profile trace I often see the ...
user avatar
0 votes
0 answers
121 views

SQL Server 2012: How do I capture server activity during a specific time frame?

SQL Server Gurus, I have a situation on one of our servers. This server's sql agent job executes an SSIS flow every hour 24/7. The SSIS flow boils down to inserting/updating/deleting multiple tables ...
user avatar
  • 137
1 vote
0 answers
239 views

why the queries run by a specific user are slow?

Here you can see how to save the contents of the default trace into a table. I have been saving the contents of the default trance into a table in my DBA database. The table is called [DBA].[dbo].[...
user avatar
0 votes
1 answer
261 views

ODBC SQL tracer file question marks

I have an MS Access query that connects to an Oracle Express database via an ODBC connection. I've figured out a way to trace the SQL that is sent from MS Access to the ODBC connection. This is what ...
user avatar
  • 1,373
3 votes
1 answer
1k views

Trace ODBC commands: What is the registry path for TraceSQLMode and where is SQLOUT.TXT?

In the Optimizing Microsoft Office Access documentation, it mentions that we can: ...edit a Microsoft Windows registry setting that allows you to see the commands that the Office Access database ...
user avatar
  • 1,373
1 vote
0 answers
105 views

Database performance stats

I have this request to collect some statistics on a database over a period of time. Unique entries of the queries being run on a database from a application server ( Can be done with running a Trace ...
user avatar
1 vote
1 answer
177 views

server trace naming convention

I wanted to extract some information from the server trace file that is generated after I send a connect statement to the database. I wanted to know the naming convention for the server trace file. I ...
user avatar
0 votes
2 answers
414 views

Filter not working on Showplan XML in SQL Server trace

I have setup a SQL Server trace to capture long running queries on my SQL Server 2014 box and added Showplan XML event to capture the execution plan of the queries. The trace was created with duration ...
user avatar
  • 1,770
13 votes
2 answers
26k views

Duration unit in SQL Server trace file

I have generated a trace file in SQL Server 2012, not really sure about the unit of duration, it is measured by millisecond?
user avatar
  • 379
3 votes
2 answers
426 views

EventSequence in Trace using profiler

We have a stored procedure sp_foo that contains dynamic sql and at the end of sp_foo the dynamic sql is executed using EXECUTE (@query) While analyzing a trace profile i noticed that the Eventsquence ...
user avatar
2 votes
1 answer
158 views

Send results of autogrowth from default trace to application event log

I've been asked to generate an entry in the event viewer, as opposed to an e-mail notification, whenever there is an autogrowth event. The problem I'm having is getting data from the default trace ...
user avatar
6 votes
3 answers
16k views

Finding the application behind ".net sqlclient data provider"

I'm trying to find which application is opening various connections on the SQL Server, all named ".net sqlclient data provider". From system monitor I got the machine name; On the client with netstat ...
user avatar
  • 97
0 votes
1 answer
254 views

SERV_MOD_ACT_TRACE_ENABLE problem

SQL> EXECUTIVE DBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLE(service_name=>'ACC_SRV',waits=>TRUE,binds=>FALSE,instance_name=>'inst1'); Why this function need instance_name parameter? I think ...
user avatar
  • 201
3 votes
2 answers
271 views

A methodology for tracing a query that sporadically runs for hours instead of seconds

Once a few weeks or months, but always on the same weekday, one query from a stored procedure used in a daily batch job may visibly become stuck and run for about 200 minutes until the application ...
user avatar
  • 911
0 votes
1 answer
441 views

Lots of small SQL statements in SQL Server and measuring network time between DB and Client

I am load testing an application and it appears from New Relic that each transaction executes a significant number SQL statements (approx 250). As we scale up, the service that makes these calls ...
user avatar
0 votes
1 answer
2k views

Unable to remove trace from sys.traces

We recently discovered one of our drives was being filled up by audittrace files. One of our DBAs turned off C2 auditing which should normally stop the files filling up the drive. However, it appears ...
user avatar
  • 1,049
1 vote
1 answer
595 views

Application queries are not getting generated in trace file in oracle [closed]

I am getting queries in trace file which are fired from Oracle SQL Developer IDE but I want to trace queries on Oracle database, which got fired from my java application. I'm using ALTER SESSION SET ...
user avatar
0 votes
1 answer
35 views

Stopping multiple server side SQL Server traces immediately

A mistake in an audit script generated more than 100 traces. Is there a way I can stop all of them?
user avatar
  • 868
0 votes
2 answers
573 views

Using LIKE with apostrophes

I have been running a server side trace in order to find out how a specific stored procedure is called within my database. I am running the following query in order to get data from the trace file ...
user avatar
0 votes
1 answer
1k views

index-*.wt: encountered an illegal file format or internal - WT_PANIC: WiredTiger library panic - aborting after fassert() failure

One hypervisor went down for 7 seconds and afterwords I couldn't start mongod. See error. Replicaset with 3 nodes. I use /var/lib/mongodb-mms-automation/mongodb-linux-x86_64-3.2.8/bin/mongod. I fixed ...
user avatar
  • 2,178
1 vote
3 answers
2k views

what are all possible filters to add to a server-side trace?

On this question you can see how to set up a filter on your trace. this code below filters a trace file to capture only events that happen on database 'AdventureWorks' -- Set the Filters declare @...
user avatar
0 votes
0 answers
218 views

how to convert a profile trace into extended events?

I was having a look at this site: Convert an Existing SQL Trace Script to an Extended Events Session but still struggling to make the trace file below to work as an extended event. -- Create a Queue ...
user avatar
5 votes
1 answer
2k views

Howto avoid textdata of trace gets truncated?

I have a trace file including the TEXTDATA column created by a server-side tracing. Some of the traced queries are very long. If I re-open the trace file on Profiler, the relevant long query is ...
user avatar
  • 4,595
1 vote
1 answer
212 views

Howto transfer tracefile into a trace table without loosing the sort order?

I have traced some data into a trace table into Sql Server using the Profiler GUI. This table has the following structure: It contains the SQL statements as well as execution plans in the TEXTDATA ...
user avatar
  • 4,595
2 votes
1 answer
71 views

How to know which query is resulting in errors in the trace?

So, I got this: A simple trace with user errors. But, how can I know the query that has the problem listed here? I don't think DBCC INPUTBUFFER(X) is appropriated to this. EDIT 1: Well, I'm using:...
user avatar
  • 7,100