Professional Web Applications Themes

how to list all the file names in a particular directory in Stored Procedure. - Microsoft SQL / MS SQL Server

hi Can anyone help me out !! how to list all the file names in a particular directory in Stored Procedure. I need to do this in a Stored Procedure. kindly provide me some solution.. hope to hear from u .. Thanks in advance .. regards John...

  1. #1

    Default how to list all the file names in a particular directory in Stored Procedure.

    hi

    Can anyone help me out !!

    how to list all the file names in a particular directory
    in Stored Procedure.

    I need to do this in a Stored Procedure. kindly provide me
    some solution.. hope to hear from u ..

    Thanks in advance ..

    regards
    John
    john Guest

  2. #2

    Default Re: how to list all the file names in a particular directory in Stored Procedure.

    one way is to use the xp_cmdshell procedure. This allows you to run a
    command like DIR, as if you were typing into a command prompt. You'll find
    more information about this in Books Online.

    --

    Brian Moran
    Principal Mentor
    Solid Quality Learning
    SQL Server MVP
    [url]http://www.solidqualitylearning.com[/url]


    "john" <john_ebenzer> wrote in message
    news:0f0c01c346e4$5230bf00$a101280aphx.gbl...
    > hi
    >
    > Can anyone help me out !!
    >
    > how to list all the file names in a particular directory
    > in Stored Procedure.
    >
    > I need to do this in a Stored Procedure. kindly provide me
    > some solution.. hope to hear from u ..
    >
    > Thanks in advance ..
    >
    > regards
    > John

    Brian Moran Guest

Similar Threads

  1. Unix: List only File names and not directory
    By Srinath M.K in forum Linux / Unix Administration
    Replies: 16
    Last Post: February 13th, 05:26 PM
  2. What file or directory is mysql data stored in?
    By Gordon Burditt in forum MySQL
    Replies: 0
    Last Post: July 31st, 10:28 PM
  3. stored procedure value
    By -D- in forum Dreamweaver AppDev
    Replies: 1
    Last Post: March 28th, 07:48 PM
  4. Case sensitive Stored Procedure names in IDS9.4
    By Colin Bull in forum Informix
    Replies: 0
    Last Post: September 23rd, 08:52 AM
  5. how to list all the file names in a directory in Stored Procedure
    By David Portas in forum Microsoft SQL / MS SQL Server
    Replies: 3
    Last Post: July 11th, 05:13 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139