When I run it in SSMS I see many records, while when I link that view to my Access app I only see a few, why is that?
SELECT dbo.Initialstbl.LastName, dbo.Initialstbl.FirstName, sys.sysprocesses.blocked, sys.sysprocesses.waittype, sys.sysprocesses.waittime FROM sys.sysprocesses INNER JOIN dbo.Initialstbl ON sys.sysprocesses.net_address = REPLACE(dbo.Initialstbl.SQLName, ':', '')
Thanks in Advance.
use master SELECT p.spid, p.blocked, r.blocking_session_id,I.LastName, I.FirstName, DB_NAME(p.dbid) dbname, p.loginame, p.login_time, p.last_batch, p.status, p.hostname, p.program_name, p.hostprocess, c.client_net_address, t.text, p.net_address FROM master.sys.sysprocesses p INNER JOIN master.sys.dm_exec_connections c ON p.spid=c.session_id INNER JOIN PlacementNP.dbo.Initialstbl I ON p.net_address = REPLACE(I.SQLName, ':', '') LEFT JOIN master.sys.dm_exec_requests r ON p.spid=r.session_id CROSS APPLY master.sys.dm_exec_sql_text(c.most_recent_sql_handle) AS t
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE