January 27, 2015 at 3:27 am
Hi All,
After monitoring using SQL profiler, i found that Missing join predicate event is happening a lot.
The problem is that profiler doesn't allow me to select the textdata to know which SQL statement is causing the issue.
I tried using the spid to check what's that process is running but the problem is that application is running many sqls so when i run
select PROGRAM_NAME,hostname,qt.text from sys.sysprocesses as sps1 CROSS APPLY sys.dm_exec_sql_text(sps1.sql_handle) AS qt
where spid=169
it gets me the SQL being run at that time not the one that causing the event.
Appreciate any help on that.
Best Regards
Nader
January 27, 2015 at 1:26 pm
You can try this query from sp_BlitzCache at http://www.brentozar.com/blitzcache/no-join-predicate/. It will look through your plan cache to find all statements that have nojoinpredicate warning.
January 27, 2015 at 11:32 pm
Thank you very much.
January 29, 2015 at 1:52 am
Hi Guys,
I tried getting the different types of warnings or errors available in SQL server to use them in same SQL Robert posted to detect any other problems.
I couldn't find it in SQL server documentation, if anyone could help me with that please.
Thanks
Nader
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply