May 31, 2016 at 2:23 am
Hi everyone!
I see all connection session by query statement:
Select * From master.dbo.sysprocesses
And i try to clear by statement:
Delete From master.dbo.sysprocesses
or
Truncate table master.dbo.sysprocesses
but not allow.
Please help me know how to clear or update
master.dbo.sysprocesses
?
Thank you very much!
May 31, 2016 at 2:57 am
Sysprocesses is a view of the processes that are running on SQL Server. You can't update it. If you want to stop any of those processes running, use KILL. Only do that if you know what you're doing. What are you trying to achieve here?
John
May 31, 2016 at 6:46 pm
John Mitchell-245523 (5/31/2016)
Sysprocesses is a view of the processes that are running on SQL Server. You can't update it. If you want to stop any of those processes running, use KILL. Only do that if you know what you're doing. What are you trying to achieve here?John
Thank John!
I connected to another database, and i don't want to him know about that.
so i need to clear log in sysprocesses.
May 31, 2016 at 10:58 pm
To remove the connection from sys.sysprocesses, you need to disconnect, after disconnecting your spid will be no longer in the list of sys.sysprocesses.
May 31, 2016 at 11:04 pm
manticohd (5/31/2016)
John Mitchell-245523 (5/31/2016)
Sysprocesses is a view of the processes that are running on SQL Server. You can't update it. If you want to stop any of those processes running, use KILL. Only do that if you know what you're doing. What are you trying to achieve here?John
Thank John!
I connected to another database, and i don't want to him know about that.
so i need to clear log in sysprocesses.
Sounds shady, at best. Knowing that, I wouldn't help if there was a way. Why are you sneaking around?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 1, 2016 at 2:31 am
johnwalker10 (5/31/2016)
To remove the connection from sys.sysprocesses, you need to disconnect, after disconnecting your spid will be no longer in the list of sys.sysprocesses.
Thank John!
Yesterday, i already solved this one.
I disconnected like your comment.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply