简体   繁体   中英

Access SQL server on different Amazon EC2 windows server

I have the following scenario:

(a)Our old application was deployed to an amazon EC2 windows server with its own SQL server. We are using C# Entity Framework to access the database.

(b)Our new application will be deployed to an amazon EC2 windows server with its own SQL server. We are using C# Entity Framework to access the database.

(c) Our plan is to have both Applications running at the same time. If user want to upgrade to new application, we will convert the data from the old sql server to data in the sql server in the new EC2 windows server. I need to figure out a way to access the old sql server from new EC2 windows servers with a configuration file in C# application. Is this possible?

Yes, this should work fine as far as the security group and firewall are open across the sql server and the EC2 instance. But the suggestion is to migrate data to single sql server and manage it via two applications on different EC2 as needed. It will resolve any problem of scaling in future or the data issues like redundancy, speed, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM