Access exe on EC2 from AWS RDS SQL Instance

0

We are migrating an on-prem SQL instance to an AWS RDS SQL instance. The current on-prem SQL instances uses SQL jobs to call a batch file that launches a custom exe, passing the required parameters. Is it possible to create a SQL Job, on the AWS instance, that will call the exe, on the EC2 instance. I have already set up the EC2 connection with the RDS SQL instance.

2 Antworten
1

Hi,

From the Documentation [+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.SQLServer.CommonDBATasks.Agent.html

"Running replication jobs and running command-line scripts by using ActiveX, Windows command shell, or Windows PowerShell aren't supported."

[+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.FeatureNonSupport

"Extended stored procedures, including xp_cmdshell" --> This is not supported.


RDS Custom on the other hand should allow above limitations. [+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/working-with-custom-sqlserver.html

AWS
SUPPORT-TECHNIKER
Kevin_Z
beantwortet vor einem Jahr
0

Hello AWS Customer,

I understand that you are migrating from on-premise SQL instance to AWS RDS SQL instance, you would like to know if it is possible to create a SQL job on the AWS instance that will call the exe on EC2. As you may know that RDS SQL Server is a managed service, access to the underlying host is restricted. However as a workaround you may use RDS Custom[1][2].



Wishing you a great day ahead.

References:


[1]Using SQL Server Agent - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.SQLServer.CommonDBATasks.Agent.html

[2]Working with RDS Custom for SQL Server - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/working-with-custom-sqlserver.html

Winnie
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen