Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. list all host names

list all host names

Scheduled Pinned Locked Moved Database
databasequestion
2 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mogamboo_Khush_Hua
    wrote on last edited by
    #1

    select spid, status, loginame, hostname, blocked, db_name(dbid), cmd from master..sysprocesses Above query lists all hosts currently logged in using which login name. But i want which hostname have logged in past using which login name . where do i found this information ? Is there any log is maintained for that.

    L 1 Reply Last reply
    0
    • M Mogamboo_Khush_Hua

      select spid, status, loginame, hostname, blocked, db_name(dbid), cmd from master..sysprocesses Above query lists all hosts currently logged in using which login name. But i want which hostname have logged in past using which login name . where do i found this information ? Is there any log is maintained for that.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Member 6392036 wrote:

      i want which hostname have logged in past

      AFAIK, the information isn't stored historically. If you want to know who was online when, then you'll need to add some kind of logging.

      I are Troll :suss:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups