Can an application connect to databases from on-premise SQL Server Instance and Azure SQL together?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
Can a single application connect to two different databases each of which is in different Instances. One instance has on-premise deployment, the other one is Azure SQL(not SQL in Azure VM). So basically is it possible for an application to access data from both Instances?
sql-server azure-sql-database
add a comment |Â
up vote
1
down vote
favorite
Can a single application connect to two different databases each of which is in different Instances. One instance has on-premise deployment, the other one is Azure SQL(not SQL in Azure VM). So basically is it possible for an application to access data from both Instances?
sql-server azure-sql-database
By "application" do you mean some sort of executable file or web application?
â McNets
1 hour ago
If the answer will differ for each one then both.
â Eleonora Grigoryan
1 hour ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Can a single application connect to two different databases each of which is in different Instances. One instance has on-premise deployment, the other one is Azure SQL(not SQL in Azure VM). So basically is it possible for an application to access data from both Instances?
sql-server azure-sql-database
Can a single application connect to two different databases each of which is in different Instances. One instance has on-premise deployment, the other one is Azure SQL(not SQL in Azure VM). So basically is it possible for an application to access data from both Instances?
sql-server azure-sql-database
sql-server azure-sql-database
asked 1 hour ago
Eleonora Grigoryan
48513
48513
By "application" do you mean some sort of executable file or web application?
â McNets
1 hour ago
If the answer will differ for each one then both.
â Eleonora Grigoryan
1 hour ago
add a comment |Â
By "application" do you mean some sort of executable file or web application?
â McNets
1 hour ago
If the answer will differ for each one then both.
â Eleonora Grigoryan
1 hour ago
By "application" do you mean some sort of executable file or web application?
â McNets
1 hour ago
By "application" do you mean some sort of executable file or web application?
â McNets
1 hour ago
If the answer will differ for each one then both.
â Eleonora Grigoryan
1 hour ago
If the answer will differ for each one then both.
â Eleonora Grigoryan
1 hour ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Yes, you can use so many connections you need.
For instance, if you're programming for .Net framework simply instantiate two or more SqlConnection class and set up the ConnectionString property according the DB you are trying to access.
You can find some examples about ConnectionString's here.
And MS Docs about Azure ConnectionString's here.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Yes, you can use so many connections you need.
For instance, if you're programming for .Net framework simply instantiate two or more SqlConnection class and set up the ConnectionString property according the DB you are trying to access.
You can find some examples about ConnectionString's here.
And MS Docs about Azure ConnectionString's here.
add a comment |Â
up vote
2
down vote
accepted
Yes, you can use so many connections you need.
For instance, if you're programming for .Net framework simply instantiate two or more SqlConnection class and set up the ConnectionString property according the DB you are trying to access.
You can find some examples about ConnectionString's here.
And MS Docs about Azure ConnectionString's here.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Yes, you can use so many connections you need.
For instance, if you're programming for .Net framework simply instantiate two or more SqlConnection class and set up the ConnectionString property according the DB you are trying to access.
You can find some examples about ConnectionString's here.
And MS Docs about Azure ConnectionString's here.
Yes, you can use so many connections you need.
For instance, if you're programming for .Net framework simply instantiate two or more SqlConnection class and set up the ConnectionString property according the DB you are trying to access.
You can find some examples about ConnectionString's here.
And MS Docs about Azure ConnectionString's here.
answered 1 hour ago
McNets
13k41553
13k41553
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f220652%2fcan-an-application-connect-to-databases-from-on-premise-sql-server-instance-and%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
By "application" do you mean some sort of executable file or web application?
â McNets
1 hour ago
If the answer will differ for each one then both.
â Eleonora Grigoryan
1 hour ago