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
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. How to identify what process is holding a file open.

How to identify what process is holding a file open.

Scheduled Pinned Locked Moved System Admin
sysadmindatabasesql-servertoolshelp
4 Posts 4 Posters 0 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.
  • L Offline
    L Offline
    LizardWiz
    wrote on last edited by
    #1

    Does anyone know how to id what specific process has a particular file open? Is there a utility in the OS like 'lsof' or a utility with the MS compilers? If not can I do this programatically? Any help would be apprciated. BTW. The reason I am doing this is because the network admin has a open file called 'hfind.tmp' on a SQL Server machine. Is this file possibly an indexing or hashtable for full text searches in SQL Server? ~LizardWiz()

    D R T 3 Replies Last reply
    0
    • L LizardWiz

      Does anyone know how to id what specific process has a particular file open? Is there a utility in the OS like 'lsof' or a utility with the MS compilers? If not can I do this programatically? Any help would be apprciated. BTW. The reason I am doing this is because the network admin has a open file called 'hfind.tmp' on a SQL Server machine. Is this file possibly an indexing or hashtable for full text searches in SQL Server? ~LizardWiz()

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      Use the free Process Explorer from SysInternals Trying to make bits uncopyable is like trying to make water not wet. -- Bruce Schneier By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn

      1 Reply Last reply
      0
      • L LizardWiz

        Does anyone know how to id what specific process has a particular file open? Is there a utility in the OS like 'lsof' or a utility with the MS compilers? If not can I do this programatically? Any help would be apprciated. BTW. The reason I am doing this is because the network admin has a open file called 'hfind.tmp' on a SQL Server machine. Is this file possibly an indexing or hashtable for full text searches in SQL Server? ~LizardWiz()

        R Offline
        R Offline
        Roger Wright
        wrote on last edited by
        #3

        Another goodie is Who's Locking[^]. It even lets you close down the process that's locking you out.:-D "Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.

        1 Reply Last reply
        0
        • L LizardWiz

          Does anyone know how to id what specific process has a particular file open? Is there a utility in the OS like 'lsof' or a utility with the MS compilers? If not can I do this programatically? Any help would be apprciated. BTW. The reason I am doing this is because the network admin has a open file called 'hfind.tmp' on a SQL Server machine. Is this file possibly an indexing or hashtable for full text searches in SQL Server? ~LizardWiz()

          T Offline
          T Offline
          Tim Deveaux
          wrote on last edited by
          #4

          And then there's OH.EXE[^] oh hfind should do it!

          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