Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
Get query results as a file to send to an external sFtp Server

I have created an Sql Server instance in Amazon RDS.

What I want to do is a scenario like this:

  1. Run a SELECT query on a database that resides on my cloud Sql Server
  2. Output the results of the query to a .csv file.
  3. Send the file in (2) to an external SFTP server.

What I'm not sure of is:

  1. Where will the file in step (2) land on in absence of a local server in which we create the file?
  2. Does AWS have an FTP solution. I have used S3 but can files in S3 be accessed like a normal FTP server?
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

RDS won't be able to perform these operations without help. You'll either need an EC2 instance or some other server, be it locally hosted or other on which you can run a BCP job, SSIS package, or other home-baked solution. RDS is just the database engine, and there's nothing native within SQL Server on RDS that allows for external file manipulation and/or transfer.

From Amazon's Importing and Exporting SQL Server Data Using Other Methods page:

Exporting Data from SQL Server on Amazon RDS

  • Native database backup using a full backup file (.bak) – Using .bak files to backup databases is heavily optimized, and is usually the fastest way to export data. For more information, see Importing and Exporting SQL Server Databases.
  • SQL Server Import and Export Wizard – For more information, see SQL Server Import and Export Wizard.
  • SQL Server Generate and Publish Scripts Wizard and bcp utility – For more information, see SQL Server Generate and Publish Scripts Wizard and bcp Utility.

Another option may be to utilize AWS Lamdba to do this as well. I've not worked with this in much depth personally, but this article from Amazon describes a similar process for exporting data from Oracle and PostgreSQL and in the final sections of the article state this is possible for SQL Server as well.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!