Solved

FTP To Replace xp_cmdshell in SQL Server

Posted on 2013-01-17
9
865 Views
Last Modified: 2016-02-10
I need a solution on how to replace a line in my sql stored procedure that is using xp_cmdshell with FTP in SSIS.

Please, let me know if this is possible?  Can you replace your sql that is using xp_cmdshell with FTP in SSIS.  Rather then using xp_cmdshell to call your file, now use FTP instead.
0
Comment
Question by:Favorable
9 Comments
 
LVL 35

Assisted Solution

by:David Todd
David Todd earned 100 total points
ID: 38791859
Hi,

It depends on what you are doing with xp_cmdshell.

Yes, there is an ftp object in SSIS.

For FTPS I used a third party object. Once I had sorted everything out it was quite solid and stable.

HTH
  David
0
 

Author Comment

by:Favorable
ID: 38792439
We have some stored procedures that uses xp_cmdshell to read files from a direction, but instead of using that, we want to replace with ftp in SSIS.
Will this serve the same purpose as the ftp to access the files?
0
 
LVL 14

Assisted Solution

by:nishant joshi
nishant joshi earned 300 total points
ID: 38792458
yes, you can use ftp task in ssis. its good to use ssis ftp instead of xp_cmdshell.

for your dynamic command syntax you have to use ssis expressions to accomplish all required needs.

Thanks,
Nishant
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:Favorable
ID: 38792469
Could you point me to some steps that accomplished a similar task?
0
 
LVL 14

Assisted Solution

by:nishant joshi
nishant joshi earned 300 total points
ID: 38793072
please check below link

http://nishantcomp2512.blogspot.in/p/sql-severing.html

over there you will find ssis tutorial book by kartiketanana.

This book contains detail description about ftp task.

Thanks,
Nishant
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 100 total points
ID: 38795256
We have some stored procedures that uses xp_cmdshell to read files from a direction
What does this mean? Are you:
A) Doing a FTP GET operation or
B) Doing a FTP PUT operation or
C) Something else.
0
 

Author Comment

by:Favorable
ID: 38797696
We have xp_cmdshell that is doing get data from a file direction.  Now, we want to change that to FTP GET operation.
0
 
LVL 14

Accepted Solution

by:
nishant joshi earned 300 total points
ID: 38797766
In ssis ftp task contains option  for send file and receive file.

For that you can get as well as put files.

Nishant
0
 

Author Closing Comment

by:Favorable
ID: 38807570
Thanks everyone
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question