Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

197
Visualizações
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?
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

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.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda