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 個答案
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
支援工程師
Kevin_Z
已回答 1 年前
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
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南