Re: FTPing and Calling an EXE from a SQL Statement
From: Chris Hayes (cp.hayesATsbcglobal.net_at_nospam.nospam)
Date: 01/22/05
- Next message: Chris Hayes: "Re: FTPing and Calling an EXE from a SQL Statement"
- Previous message: DBA: "Re: Query Help...please"
- In reply to: Dan Guzman: "Re: FTPing and Calling an EXE from a SQL Statement"
- Next in thread: Dan Guzman: "Re: FTPing and Calling an EXE from a SQL Statement"
- Reply: Dan Guzman: "Re: FTPing and Calling an EXE from a SQL Statement"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 22 Jan 2005 00:02:20 -0600
Thank you Dan!
This is very helpful for me! I've been bumped up to being a Development
Manager recently, so I don't have all the time I'd like to have to research
and find the answers for my developers, but this helps me out a lot! Why did
I accept the promotion again? Maybe I need to read more Dilbert...I think my
hair is getting pointer...
Thank you again...
Chris
"Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message
news:%235pd%23MEAFHA.1300@TK2MSFTNGP14.phx.gbl...
>I don't have links handy on this specific requirement, but one method is to
>execute the needed FTP command (perhaps with the -s parameter) via
>xp_cmdshell. You can find more info on accomplishing this securely at
>http://www.winnetmag.com/Article/ArticleID/25145/25145.html. This article
>was written before SQL 2000 SP3. If your are running SQL 2000 SP3+, your
>user database needs to be owned by 'sa' and you need to enable the 'db
>chaining' database option in your user database in order to maintain an
>unbroken ownership chain to xp_cmdshell.
>
> Note that you should enable the 'db chaining' option in sa-owned user
> databases when only sysadin role members have permissions to create
> dbo-owned objects in that database.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> "Chris Hayes" <cp.hayesATsbcglobal.net@nospam.nospam> wrote in message
> news:e3i0aTCAFHA.3592@TK2MSFTNGP09.phx.gbl...
>> Greetings,
>>
>> I've seen this done in other places...I wish I had paid better attention
>> because I can't remember how it was all done.
>>
>> But can someone point me the resources to accomplish my stated desires to
>> FTP a file from within a SQL Statement and also to run an .EXE from
>> within a SQL Statement...
>>
>> Thanks,
>>
>> Chris
>>
>>
>>
>>
>
>
- Next message: Chris Hayes: "Re: FTPing and Calling an EXE from a SQL Statement"
- Previous message: DBA: "Re: Query Help...please"
- In reply to: Dan Guzman: "Re: FTPing and Calling an EXE from a SQL Statement"
- Next in thread: Dan Guzman: "Re: FTPing and Calling an EXE from a SQL Statement"
- Reply: Dan Guzman: "Re: FTPing and Calling an EXE from a SQL Statement"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|