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. Database
  4. How get file date with scripts

How get file date with scripts

Scheduled Pinned Locked Moved Database
databasesysadminquestion
4 Posts 3 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.
  • T Offline
    T Offline
    topcatalpha
    wrote on last edited by
    #1

    Hi, i want to retrieve creationDate and time from a file on the server HD by using a query. anyone any idea how i can do this? thx Kurt

    W A 2 Replies Last reply
    0
    • T topcatalpha

      Hi, i want to retrieve creationDate and time from a file on the server HD by using a query. anyone any idea how i can do this? thx Kurt

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Hi, First thing that comes in mind is to create a small assembly using c#. Implement a method to extract file info you need and then install and register it to SQL Server. After that you can use this custom function in t-sql. Mika

      1 Reply Last reply
      0
      • T topcatalpha

        Hi, i want to retrieve creationDate and time from a file on the server HD by using a query. anyone any idea how i can do this? thx Kurt

        A Offline
        A Offline
        Ashfield
        wrote on last edited by
        #3

        Take a look at xp_cmdshell.

        Bob Ashfield Consultants Ltd

        T 1 Reply Last reply
        0
        • A Ashfield

          Take a look at xp_cmdshell.

          Bob Ashfield Consultants Ltd

          T Offline
          T Offline
          topcatalpha
          wrote on last edited by
          #4

          OK thx. if i can get the result of XP_CmdShell, i can manage it. greetz Kurt

          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