Results 1 to 2 of 2

Thread: how do I list contents of file directory in the SQL Query Analyzer

  1. #1
    Join Date
    Mar 2006
    Posts
    14

    how do I list contents of file directory in the SQL Query Analyzer

    how do I list contents of file directory in the SQL Query Analyzer

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    master..xp_cmdshell 'dir C:\'

    displays the content of the directory.

    you should be a sysadmin to execute this command.

    You could do the same using FSO and sp_oamethod as well.

Posting Permissions

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