Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > asp.net xp_cmdshell

Reply
Thread Tools

asp.net xp_cmdshell

 
 
m3ckon
Guest
Posts: n/a
 
      09-30-2004
Please help me?

I am writting an upload page in asp.net (using vb.net) for my intranet.
I have got the upload working ok, and I then want to run a stored proc
which will run a dts command using xp_cmdshell.

I have set the permissions correctly so that my SQL account I use has
permission to execute the SPROC and execute the xp_cmdshell.


But my question is what ASP objects should I use to run this stored
procedure??

I deally I want to see the DTS ressults diplayed to the screen, I've
tried using a datareader, but it does not seem to be working

can anyone help?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGF0cmljay5PLklnZQ==?=
Guest
Posts: n/a
 
      09-30-2004
post ur code!

"m3ckon" wrote:

> Please help me?
>
> I am writting an upload page in asp.net (using vb.net) for my intranet.
> I have got the upload working ok, and I then want to run a stored proc
> which will run a dts command using xp_cmdshell.
>
> I have set the permissions correctly so that my SQL account I use has
> permission to execute the SPROC and execute the xp_cmdshell.
>
>
> But my question is what ASP objects should I use to run this stored
> procedure??
>
> I deally I want to see the DTS ressults diplayed to the screen, I've
> tried using a datareader, but it does not seem to be working
>
> can anyone help?
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
>

 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      09-30-2004
Hi m3ckon:

As Patrick suggested you should post some code. You'll need to use the
SqlConnection class to establish a conneciton to SQL Server, and the
SqlCommand class to send a command to execute xp_cmdshell (set the
CommandText and CommandType properties).

DTS also provides COM interfaces to interact with if you need a finer
level of control. See:
http://support.microsoft.com/default.aspx?kbid=810581

--
Scott
http://www.OdeToCode.com/

On Thu, 30 Sep 2004 01:23:09 -0700, m3ckon <>
wrote:

>Please help me?
>
>I am writting an upload page in asp.net (using vb.net) for my intranet.
>I have got the upload working ok, and I then want to run a stored proc
>which will run a dts command using xp_cmdshell.
>
>I have set the permissions correctly so that my SQL account I use has
>permission to execute the SPROC and execute the xp_cmdshell.
>
>
>But my question is what ASP objects should I use to run this stored
>procedure??
>
>I deally I want to see the DTS ressults diplayed to the screen, I've
>tried using a datareader, but it does not seem to be working
>
>can anyone help?
>
>*** Sent via Developersdex http://www.developersdex.com ***
>Don't just participate in USENET...get rewarded for it!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What user is executing the SP to use xp_cmdshell darrel ASP .Net 2 03-02-2005 08:43 PM
Trying to Execute a file using exec master.dbo.xp_cmdshell, from ASP Me ASP General 3 11-30-2004 07:12 PM



Advertisments
 



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