if we have application in 1 Server and Database is in anotherServer then how can you maintain toWork [Resolved]

Posted by Kasani007 under ASP.NET MVC on 7/15/2015 | Points: 10 | Views : 1392 | Status : [Member] | Replies : 2
If we have MVC application in one Server and Database is in another Server then how can you maintain to work ?




Responses

Posted by: Bandi on: 7/15/2015 [Member] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
you can connect to the remote database ( another server's database) by specifying server name in the connection string. For example, Server=myServerName\myInstanceName
http://www.asp.net/mvc/overview/getting-started/introduction/creating-a-connection-string
http://www.connectionstrings.com/sql-server-2012/#sqlconnection

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 7/15/2015 [Member] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
http://stackoverflow.com/questions/15772779/connect-a-c-sharp-mvc-application-to-a-remote-sql-server-database

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response