|
-
Jun 28th, 2004, 05:14 AM
#1
Thread Starter
Fanatic Member
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
-
Jun 28th, 2004, 09:01 AM
#2
Addicted Member
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]
-
Jun 28th, 2004, 10:03 AM
#3
Thread Starter
Fanatic Member
error
yes, I did do what you suggested and the error is still the same
A severe error occurred on the current command
:-(
-
Jun 28th, 2004, 10:20 AM
#4
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|