370 questions
2
votes
1
answer
84
views
UDTT variable showing sometimes as "unknown" only in rpc:completed event
I'm trying to troubleshoot a performance issue with our C# application. After investigation, the culprit is a SQL Server query that takes a long time to execute.
The slow query uses an udtt (user-...
1
vote
0
answers
39
views
How to debug SSRS multiple calls to SQL Server. The RDL only defines once of a stored procedure
I have a RDL report that returns a raw Excel file with about 60 rows that took 35+ seconds to complete.
The stored procedure itself (say runPNL) only takes 11+ seconds to complete.
Here is the ...
2
votes
0
answers
56
views
Join tables with Entity Framework Core ignores join filter
Recently, I upgraded my project to use Entity Framework Core instead of Entity Framework. I have a query in my project that has recently started timing out.
When I checked the profiler, I noticed that ...
0
votes
0
answers
21
views
SQL Server Profiler 2012 Always has "master" listed under DatabaseName
I'm trying to identify some slow and databases and queries on SQL Server 2008 R2. I have been able to filter by time and display the database name succefully. However the DatabaseName always says '...
-1
votes
1
answer
2k
views
EF Core query is extremely slow. How do I improve it?
This query uses a lot of CPU and takes about 30 seconds to execute. What can I do in order to improve it?
The reason it uses joins is because there weren't proper relationships. I just added ones and ...
0
votes
0
answers
116
views
How to programatically update SQL Server Profiler template
I work with a variety of databases for work on any given day. I have built a C# tool that changes which database my system is connecting to for testing.
When I change the connection details for my ...
0
votes
0
answers
79
views
xevent profiler sql server don't show the same as sql server profiler
I have a session that executes 4 stored procedures.
4 is shown in sql server profiler, but only 3 is shown in Xevent profiler, -and Azure Data Studio profiler.
This is the textdata from sql server ...
1
vote
1
answer
989
views
Using SQL Profiler on an Azure Dedicated SQL Pool using Azure Data Studio
I am attempting to monitor direct query from power bi on a synapse dedicated sql pool. From SSMS I was unable to log into profiler (it offered only windows and sql authentication, i am using AAD with ...
0
votes
1
answer
1k
views
SqlException: The INSERT permission was denied on the object '', database '', schema 'dbo'
I have created a back end application which uses Entity framework to connect and write to the database.
Suddenly I am getting the following error:
SqlException: The INSERT permission was denied on the ...
2
votes
0
answers
479
views
SQL Server Profiler text data gets truncated
I'm running SQL Server Profiler and I'm seeing some large LINQ queries are getting truncated in the TextData.
It looks like this:
exec sp_executesql N'SELECT
[Project91].[C14] AS [C1],
[...
0
votes
1
answer
581
views
Why is Azure Data Studio Profiler not capturing stored procedures with large input data?
I am analysing the performance of stored procedures in an Azure SQL database, but when using the profiler in Azure Data Studio, I cannot see some of the stored procedures, specifically those that have ...
2
votes
0
answers
92
views
How to change or avoid default value in SQL-Profiler call? | SQL Profiler | SQL Server
How to change or avoid default value in SQL-Profiler call?
SQL Server 2019/2017 Profiler set default values for all parameters of a stored procedure. however, It's additional and gives errors in ...
1
vote
1
answer
544
views
Stop SQL Tracing
my MSSQL DB creates every second two SQL Server Profil - tace data file:
How can I stop that, because we don't want to tracing something and it files my memory?
My SELECT * FROM sys.traces is empty.
...
1
vote
0
answers
197
views
What is the duration measured in XEvent Profiler?
I have XEvent Profiler in SQL Server 2016. Some articles say the duration is measured in microseconds or milliseconds depending on the SQL Server version.
How do I check whether it is microseconds or ...
1
vote
0
answers
81
views
SQL Server Profiler find stored procedure
I have this code in visual basic calling a stored procedure:
cmdr.CommandText = "EXEC [DATABASE].[USER].[BOMBA]" & cd_ponto & ",NULL," & ds.Tables("pt_col1")....
0
votes
1
answer
198
views
Problem in accessing name of database in SQL Server Profiler
I want to find which database is querying from, here is my output:
EXEC sp_example @stat = N'SELECT stat FROM [dbo].[statsUSers] AS [UserStats];
What I want is like this:
EXEC sp_example @stat=N'...
0
votes
1
answer
4k
views
SSRS report parameters not being passed through, work fine when hard coded
I am using Sql server 2017 and visual studio 2019.
I created a report in SSRS and initially used a stored procedure with a single parameter @Date in it and used the data explorer section to set up the ...
0
votes
0
answers
50
views
Will XQuery work inside a SQL Server 2008 Stored Procedure
Microsoft SQL Server 2008 - Version 10.0.6556.0
;WITH dataAsXml AS
(
SELECT
xmlData.myElement.value('@myAttribute1', 'varchar(10)') AS 'myAttribute1',
xmlData.myElement.value('@...
1
vote
0
answers
130
views
How to get rid of SQL Profiler exception 208 using table valued parameter (TVP)
I did search for exception 208 (invalid object name) identified by SQL Profiler and found many hints regarding "Deferred Name Resolution". Nevertheless I still did not find an asnwer related ...
0
votes
2
answers
2k
views
How to get SQL Profiler working with Azure SQLDb?
We are having a Power BI dataset in the service. The source of this dataset are some Azure SQLdb tables. PaaS (Platform as a Service) setup. The daily refresh of this Power BI dataset takes long. SQL ...
0
votes
1
answer
162
views
How can I tell if a host is connecting via multiple spids using one application or running multiple instances of the application itself?
We trace our SQL Server activity for performance issues. Some applications, written in C#, look to have up to 50 individual spids connecting to the DB from a single machine. How can I distinguish if ...
1
vote
0
answers
225
views
On Amazon SQL Server RDS, how can we identify all apps that are connecting using the direct server name and not the alias?
We are soon to migrate our back-end from an Amazon SQL Server RDS to another identically set up RDS server. We intend that our systems will not be interrupted because they connect using an AWS alias ...
0
votes
1
answer
294
views
How to customize the SQL Server connection ApplicationName property in Nhibernate for profiling
I am trying to correlate SQL query activity in a SQL Server Studio profile trace with different client processes in a large application that I am new to. The connection ApplicationName column in the ...
0
votes
1
answer
659
views
Get sql statements from an exe (no source code)
I have an exe written in Delphi a decade or more ago, with no source code. It calls a ms sql database, maybe more than 1 to retrieve data. I have read only access to one of the databases, I don't have ...
-1
votes
2
answers
740
views
EF Core 6 : inspection through profiler is shocking
I have inspected EF Core 6 through SQL Server Profiler which is shocking from a performance point of view.
Here nothing profiled which is very good:
var user = App.Ctx.LoginUsers;
This code nothing ...
0
votes
1
answer
1k
views
SQL Server Profiler Not Like Filter
I am using SQL Server Profiler 2019. My "Not Like" filter on "Application" is not working. It is still getting values for "SQLAgent". See values below. How do I exclude ...
0
votes
2
answers
56
views
Sending a "Select functionname001" to SQL to easily identify long running queries and where called from
We had a performance issue with one of our queries in our application that was taking 20 seconds to run. Using azure data studio we figured out the SQL that was long running and then eventually ...
1
vote
1
answer
154
views
Excel Version 2109 - October 14 - Build 14430.20306 Certain Multidimensional Cubes Become "Frozen" After Hierarchy Change
Say you have a excel file containing a cube(referencing a Multidimensional cube on a SSAS server) configured such that you have a hierarchy in the rows:
And this hierarchy has been expanded so that ...
0
votes
0
answers
67
views
Configuring SQL Server Profiler
I need to configure Profiler to save logs from an Analysis Server and save this data to a table on SQL Server daily. The problem is that every hour it stops working. How do I configure it correctly to ...
1
vote
1
answer
127
views
SSMS - How to Provide/Edit/Send In "RequestParameters" With a MDX Query
I am working on a solution to this ticket, as part of that I'm analyzing various types of MDX queries from various sources. I've noticed that we you intercept a MDX call from a cube in excel connected ...
0
votes
0
answers
31
views
Change ApplicationName in EntityFrameWorkCore-enabled applications [duplicate]
If a software application uses Entity Framework Core (3.1) and connects to Microsoft SQL Server (2019) for data, in the SQL Server Profiler, we see it is listed as "Core Microsoft SqlClient Data ...
0
votes
0
answers
457
views
Obtaining SQL from a SQL Server Profiler trace session
I have wondered if there is an easy way to obtain the SQL from a SQL Server Profiler trace session into a single SQL script file?
At present I do these steps:
Open SSMS and the database of interest,
...
1
vote
0
answers
989
views
Trace file name is invalid
I am trying to copy the trace file information to SQL table with fn_trace_gettable function, but while running this function I am getting 'Trace file name is invalid'. And I confirmed the path and ...
0
votes
0
answers
166
views
SSRS Comma-delimited list as Parameter value with "N" character
I have entire script in SSMS (I'm using the version 2014) and there I use parameter @EmployeeID which contains hundreds of Employee_ID (int, not null).
If I choose only 1 Employee_ID, then is OK, but ...
0
votes
1
answer
43
views
Trace the Repository 's Get method with SQLPROFILER
I have a performance issue caused by a latency in return from the Repository 's Get method .
var res = Data.TicketRepository.GetSingle(filterExpression, includeNavigations);
So i configured a ...
2
votes
0
answers
673
views
Why would SQL Server Profiler not show some TextData values
I am running a trace against a SQL Server database that I have that makes extensive use of stored procedures. I have noticed that in some cases, when executing a stored procedure, the RPC:Starting and ...
9
votes
1
answer
19k
views
How to use SQL Server Profiler with an Azure SQL Server with AAD integrated security where AAD user is different from logged in desktop account?
Scenario:
User logged in to desktop using domain account
User has an Azure account in AAD which is different from the domain account
Azure SQL database with AAD authentication configured for the ...
1
vote
1
answer
247
views
How to know where query is executed in EF
I get this query in sql profiler
SELECT [r].[OfficialFactorId], [r].[AllowCalcTax], [r].[AndicatorNumber], [r].[BasketId], [r].[BookDateTime], [r].[CalculatedWithUserCurrency], [r].[...
2
votes
0
answers
196
views
what to setup in SQL profiler to investigate SSAS Cube synchronization job hang?
I am using SSIS job to process the ssas DB(cube, dim, partition etc) in source server and XMLA script in the same SSIS package to synchronize the SSAS DB from source server to destination server. This ...
0
votes
0
answers
339
views
Which SQL Profiler Trace template shows table type parameter values
Which profiler trace template can be used to see the table type parameter values that are passed into a stored proc ?
2
votes
0
answers
263
views
SQL Server Profiler: How to filter on a Session Context key's value?
I am using SQL Server 2016 in Windows.
There are multiple connections to SQL Server and a database. Each of those connections have a Session Context Key 'CustomerId' and a specific value. So for ...
0
votes
2
answers
170
views
Linq query generates different result in SQL
I wrote this left join in LINQ and I only selected PersonId from SHPerson table, but in SQL Server profiler, I got PersonId from SHPFA table too.
var spfQuery = from n in shHPFARepository.GetAll()
...
1
vote
1
answer
115
views
SQL Server Profiler vs COALESCE (SP:STMTCOMPLETED)
I was running a trace and found something that I don't understand. I have a procedure with a simple select statement that returns the first non-null value from a sequence of function calls.
I would ...
1
vote
0
answers
499
views
What is meant by Hostname and Application in SQL Server Profiler
Now I am trying SQL Server Profile. There new trace has been created and filter- TextData like 'select%'. It is running fine with output saved on SQL table.
I got required query. Beside I notice ...
0
votes
1
answer
397
views
Finding the originator of a database query using SQL Azure Data Tools Profiler or related
We've got a rogue process running somewhere that executes queries against a test database we have hosted on Azure SQL. I'm trying find this process so I can kill it. There are a number of app ...
0
votes
1
answer
379
views
How can I capture SQL Server trace events when inserting large data chunk into binary column?
I want to record all SQL statements that hit my server to replay it later. But it seems that neither SQL Server traces nor events do capture the insertion of large data chunks into binary columns.
I ...
3
votes
1
answer
3k
views
Is there a way in SQL profiler to filter by 'TextData' filter with OR conditions for multiple text criteria?
I want to use TextData Like filter in the SQL Server profiler with multiple conditions to filter queries that contains any of the words. I have used OR conditions but it's not working. How can I use ...
0
votes
2
answers
375
views
MiniProfiler for AspNetCore MySql connection
In .Net framework I use MiniProfiler for MySql connection command logging. In my current AspNetCore solution MiniProfiler doesn't show sql commands as well. What MiniProfiler options I should be using ...
0
votes
0
answers
152
views
Is there any way to connect to SQL Server 2000 from SQL Server 2016 Profiler
We're verifying legacy system in SQL Server 2000 and confirmed we can connect it from SQL Server Management Studio 2016 (Need to add TCP port though).
Now we'd like to connect SQL Server Profiler ...
2
votes
1
answer
2k
views
How to map a SQL profiler captured 'exec sp_executesql' to stored procedure name in sql server
I have a huge SQL server database. I want to re-write an application. For that I want to reuse the database which has many tables, views and stored procedure. I am using SQL Profiler tool to map the ...