I am developing web application of banking in asp.net. I store all the database in one system(acts as server), and application is runned in other system. So when any modifications are done in the records like withdrawals by running application, those updates has to be reflected in the database of other system.SO my question is how to connect those two systems?
Connecting two computers
Collapse
X
-
Mention the IP or computername of the Server in Application's Webconfig file.
For Example ,you are using the Server 127.0.0.1 (Server IP).
In WebConfig File mention the Ip as DataSource while adding ConnectionStrin g.
Code:<connectionStrings> <add name="ConnectionString" connectionString="Data Source=127.0.0.1;Initial Catalog=databasename;Persist Security Info=True;User ID=sa;Password=admin@password123" providerName="System.Data.SqlClient" /> </connectionStrings>Last edited by Frinavale; Jan 3 '12, 08:15 PM. Reason: Added code tags and set IP address of the database source to 127.0.0.1 so to make sure that any actual database IP address is not provided online.
Comment