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


sysprocesses returning different results


sysprocesses returning different results

Author
Message
TheRedneckDBA
TheRedneckDBA
SSCarpal Tunnel
SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)

Group: General Forum Members
Points: 4290 Visits: 2614
I have a process that I've had running since 2008 that runs daily on one of my servers and reaches out to other servers to check that SQL Server Agent is running. I simply do a search for the SQL Agent process in the sysprocesses table on the remote server.

For some reason earlier this week, my remote query stopped returning the full list from sysprocesses, and only returns a single row with program_name = "Microsoft SQL Server"

The first query below is what my job uses. Thinking maybe that a Windows/SQL update got pushed out recently by mistake (though our network team swears nothing was updated recently) and sysprocesses was finally deprecated out of use, I played around with the 2nd two queries with the same results.

SELECT Program_Name, * FROM [ServerName].master.dbo.sysprocesses
SELECT Program_Name, * FROM [ServerName].master.sys.sysprocesses
SELECT Program_Name, * FROM [ServerName].master.sys.dm_exec_sessions

If I run these queries on one server, I get just one row back. But if I run them on the local server OR a different remote server, I get the full results as expected. I've verified that the linked servers are set up identically on the two remote servers, so I can't explain why it would return differently based on where it is being called from.

Any suggestions as to what I should look out to explain the differences?

Thanks

The Redneck DBA
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