Connecting two computers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mangotree
    New Member
    • Dec 2011
    • 8

    #1

    Connecting two computers

    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?
  • Sivaranjani
    New Member
    • Dec 2011
    • 16

    #2
    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

    • Mangotree
      New Member
      • Dec 2011
      • 8

      #3
      Thank you so much for your help.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Make sure that you take precautions to secure your connection strings.
        You can encrypt the connection strings portion of the web.config file using tools available to you in IIS and ASP.NET.

        Comment

        Working...