Results 1 to 3 of 3

Thread: sp_who2 (MSSQL 2000)[Resolved]

  1. #1

    Thread Starter
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    sp_who2 (MSSQL 2000)[Resolved]

    Hey guys by executing exec sp_who2 you get list of information on who's connecting to your sql server. My question is how do I remove a certain list that connecting my sql server?

    i.e
    lets say I want to remove in the list that has HostName=Bob???
    Last edited by mar_zim; Sep 15th, 2005 at 04:43 AM.

  2. #2
    Fanatic Member kaffenils's Avatar
    Join Date
    Apr 2004
    Location
    Norway
    Posts
    946

    Re: sp_who2 (MSSQL 2000)

    Quote Originally Posted by mar_zim
    Hey guys by executing exec sp_who2 you get list of information on who's connecting to your sql server. My question is how do I remove a certain list that connecting my sql server?

    i.e
    lets say I want to remove in the list that has HostName=Bob???
    You can use the KILL command to disconnect spids with hostname=BOB. Just find the SPID in the list, lets say it is 155, and execute KILL 155.

  3. #3

    Thread Starter
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: sp_who2 (MSSQL 2000)

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width