SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Some trace events have not been reported to SQL Server Profiler because the server has reached its...


Some trace events have not been reported to SQL Server Profiler because the server has reached its maximum available memory for the process

Author
Message
ramadesai108
ramadesai108
SSCarpal Tunnel
SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)

Group: General Forum Members
Points: 4071 Visits: 690
Running trace on the following query shows :

Some trace events have not been reported to SQL Server Profiler because the server has reached its maximum available memory for the process

in the trace:

select top 1 fld1,
fld2,
sum(Qty)
from Transactions t
INNER JOIN TempLocations t1
on t1.LocationNo=t.LocationNo
where TypeID in ('R','Y')
and updated = 0
and t.fld1 = '00979'
group by t.fld1,t.fld2 having sum(Qty) > 0

When I run the above query either thru application or thru
query analyzer, it keeps on running but does not produce
any result. While the query is running, if I start the profiler, I get
the above message.

but if I remove the statement "and t.fld1 = '00979'
then the query produces the result.

This is strange. Can anyone help?

Thanks.
MANU-J.
MANU-J.
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11900 Visits: 8766
How many rows are there in transactions table? If its a big table then try indexing this field fld1 which u said is slowing down the query and see if this helps..

MJ
ramadesai108
ramadesai108
SSCarpal Tunnel
SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)

Group: General Forum Members
Points: 4071 Visits: 690
Manu,
Transactions is a huge table and fld1 is indexed.

Thanks.
MANU-J.
MANU-J.
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11900 Visits: 8766
Check the index fragmentation and execution plan of query.

MJ
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search