Results 1 to 4 of 4

Thread: handling file permission

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    handling file permission

    Hi,
    I have created a stored procedure which runs uses master..xp_cmdshell @filename

    This SP basically transfers a file from the network onto my pc.
    When this sp is run in the quesry analyser, it works fine but not in ASP.NET
    As soon as it hits the ExecuteNoNQuery then it says that there is a severe error.
    I believe this is to do with permissioning??
    The anonymous access is unchecked.
    Do you know what can be done to run this sp in ASP.NET please?
    Thanks

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    Fill in the SP and User you want to run the SP and execute in Query Analyzer. The [User] should be the User ID you are using in your connection string.

    Code:
    Grant Execute on [Stored Procedure] to [User]
    ~Ryan





    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    error

    yes, I did do what you suggested and the error is still the same
    A severe error occurred on the current command

    :-(

  4. #4
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    ~Ryan





    Have I helped you? Please Rate my posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width