Ask a Question related to Dreamweaver AppDev, Design and Development.
-
darrel #1
SQL: xp_cmdshell
anyone use this procedure? I'm calling it from another stored procedure, but
am getting permission issues. I don't have permission to execute it.
Here's my SP:
CREATE PROCEDURE updateDB AS
Exec master..xp_cmdshell
'DTSRUN my paramaters...'
I'm guessing I need to set up a user with permission to access the
xp_cmdshell? Once I do that, how do I call it as that user? Can I do that
from my SP?
-Darrel
darrel Guest
-
xp_cmdshell driving me nuts! Experts please help!
Hi, I've been struggling with this for days now with limited sucess. Manybe you guys can help out. All this would be effortless in Oracle/Unix... -
How stop a xp_cmdshell process ???
Hello, Someone knows the way to stop a process genetared by command : EXEC master..xp_cmdshell @PsCMD For example: I have this code to... -
BCP query out executed by xp_cmdshell works fine from query analyzer but fails from VB Component
Hi all, I have a stored procedure which returns a vast number of record and i have to write the output into a csv file. I'm using BCP utility to... -
Calling master..xp_cmdshell 'textcopy'
I am attempting to create a VB call to a stored procedure that uses xp_cmdshell and textcopy to store word documents in a table. I have used an... -
xp_cmdshell doesn't run with the logged in user account...
xp_cmdshell always runs under the sqlserver service account. for the copy to work, your service account must be a domain account given permission to... -
Julian Roberts #2
Re: xp_cmdshell
You'd probably need to be a system administrator to do this kinda stuff.
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest
-
Chris In Madison #3
Re: xp_cmdshell
Hmmm... Anything that runs out of the Master table requires pretty elevated
privileges. You'd almost have to execute this as SA, or with a user that
has admin privileges.
Best regards,
Chris
Chris In Madison Guest
-
Tom Muck #4
Re: xp_cmdshell
Whichever user calls the SP has to have permission to execute the> I'm guessing I need to set up a user with permission to access the
> xp_cmdshell? Once I do that, how do I call it as that user? Can I do that
> from my SP?
xp_cmdshell stored procedure. If you have admin rights in Master database,
you can add permission:
GRANT execute ON master.dbo.xp_cmdshell TO yourusername
However, the xp_cmdshell stored procedure is quite dangerous.
--
-------------------------------------------
Tom Muck
co-author Dreamweaver MX 2004: The Complete Reference
[url]http://www.tom-muck.com/[/url]
Extending Knowledge, Daily
[url]http://www.CommunityMX.com/[/url]
Tom Muck Guest
-
darrel #5
Re: xp_cmdshell
> You'd probably need to be a system administrator to do this kinda stuff.
Right...but I'm not sure what I need to do.
-Darrel
darrel Guest
-
darrel #6
Re: xp_cmdshell
> Hmmm... Anything that runs out of the Master table requires pretty
elevatedRight...I guess that's the question. So, we need to make a new user with> privileges. You'd almost have to execute this as SA, or with a user that
> has admin privileges.
admin privliges that is allowed to execute the XP. How do I then call that
XP as that user?
-Darrel
darrel Guest
-
darrel #7
Re: xp_cmdshell
> Whichever user calls the SP has to have permission to execute the
Ah! OK, so that makes sense. I need to call my SP as the same user that has> xp_cmdshell stored procedure. If you have admin rights in Master database,
> you can add permission:
permission to run the XP.
How dangerous? What I am doing is this:> However, the xp_cmdshell stored procedure is quite dangerous.
We have a staging server and a public server. One database is updated
nightly via a DTS, but there have been requests to update it manually at
times.
I want to put a button on an ASPX page on our intranet, that, when clicked,
will call my SP which, in turn, calls the XP to execute the DTSRUN command
to manually run the DTS.
Would that cause problems?
-Darrel
darrel Guest
-
Tom Muck #8
Re: xp_cmdshell
> I want to put a button on an ASPX page on our intranet, that, when
clicked,Theoretically, yes, but practically, no. If this is being executed by a user> will call my SP which, in turn, calls the XP to execute the DTSRUN command
> to manually run the DTS.
>
> Would that cause problems?
that you have set up for your web application, anything that the user has
access to is open to a hacker. If you use a different SQL user for your
admin pages, you are making the web application a little more secure. Having
said that, I use it myself for executing DTS from my admin pages.
Tom
Tom Muck Guest
-
darrel #9
Re: xp_cmdshell
> Theoretically, yes, but practically, no. If this is being executed by a
userOh. Gotcha. Well, this is all on our internal network, so I'm not going to> that you have set up for your web application, anything that the user has
> access to is open to a hacker.
be too worried about it.
Good to know though!
-Darrel
darrel Guest



Reply With Quote

