Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Client Server Application in C#

Client Server Application in C#

Scheduled Pinned Locked Moved C#
csharpdatabasesysadminhelptutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gadwy
    wrote on last edited by
    #1

    Hi everybody, I have a small Windows C# distributable application that connects to SQL Compact 2005. The application allows the user to view,insert,update and delete records stored in the database. This is a single user application and I would like to extend it to be a multiuser application. I want the application to be installed on a main machine (which would connect to the database) and have client installations which would perform the operation on the database installed in the main machine. I am new to this subject and I am not sure where to start. I have been looking for a book or samples that would help me achieve this but I haven't been able to find anything. I have been looking for "2-tier applications c#", "client server applications .net", etc. Could somebody guide me in the right direction? Thanks in advance!

    N R J 3 Replies Last reply
    0
    • G gadwy

      Hi everybody, I have a small Windows C# distributable application that connects to SQL Compact 2005. The application allows the user to view,insert,update and delete records stored in the database. This is a single user application and I would like to extend it to be a multiuser application. I want the application to be installed on a main machine (which would connect to the database) and have client installations which would perform the operation on the database installed in the main machine. I am new to this subject and I am not sure where to start. I have been looking for a book or samples that would help me achieve this but I haven't been able to find anything. I have been looking for "2-tier applications c#", "client server applications .net", etc. Could somebody guide me in the right direction? Thanks in advance!

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Try this http://n-tier.com/articles/csovervw.html[^] http://www.microsoft.com/belux/msdn/nl/community/columns/hyatt/ntier1.mspx[^]


      only two letters away from being an asset

      1 Reply Last reply
      0
      • G gadwy

        Hi everybody, I have a small Windows C# distributable application that connects to SQL Compact 2005. The application allows the user to view,insert,update and delete records stored in the database. This is a single user application and I would like to extend it to be a multiuser application. I want the application to be installed on a main machine (which would connect to the database) and have client installations which would perform the operation on the database installed in the main machine. I am new to this subject and I am not sure where to start. I have been looking for a book or samples that would help me achieve this but I haven't been able to find anything. I have been looking for "2-tier applications c#", "client server applications .net", etc. Could somebody guide me in the right direction? Thanks in advance!

        R Offline
        R Offline
        Ravenet
        wrote on last edited by
        #3

        Hi man dont worry ya,because of we are in the IT industry. So u can see search in google or yahoo for client server applications tutrioals. may be this is help to u. http://www.codeproject.com/KB/IP/filesharingvb7.aspx[^] http://msdn2.microsoft.com/en-us/library/ms973279.aspx[^] cheers

        Cheers,Earn and Enjoy RRave MCTS,MCPD http://ravesoft.blogspot.com

        1 Reply Last reply
        0
        • G gadwy

          Hi everybody, I have a small Windows C# distributable application that connects to SQL Compact 2005. The application allows the user to view,insert,update and delete records stored in the database. This is a single user application and I would like to extend it to be a multiuser application. I want the application to be installed on a main machine (which would connect to the database) and have client installations which would perform the operation on the database installed in the main machine. I am new to this subject and I am not sure where to start. I have been looking for a book or samples that would help me achieve this but I haven't been able to find anything. I have been looking for "2-tier applications c#", "client server applications .net", etc. Could somebody guide me in the right direction? Thanks in advance!

          J Offline
          J Offline
          JustChiragPatel
          wrote on last edited by
          #4

          Hi, in client server application, we have to use common Connection String, so that all the client installation can connect with centralized database at Server. so, have you used connection string in your single user application ? if yes then use the connection string of Central server in App.config file so all client installation will point central server database. use the connection string in App.config like, Source=local/(central Server instance name);Initial Catalog=Database Name;User ID=sa;Password=sa" providerName="System.Data.SqlClient" /> then use this connection string in your Connection object. so your all database related code will point this central server. try this. :-D

          Chirag Patel Programmer Analyst

          G 1 Reply Last reply
          0
          • J JustChiragPatel

            Hi, in client server application, we have to use common Connection String, so that all the client installation can connect with centralized database at Server. so, have you used connection string in your single user application ? if yes then use the connection string of Central server in App.config file so all client installation will point central server database. use the connection string in App.config like, Source=local/(central Server instance name);Initial Catalog=Database Name;User ID=sa;Password=sa" providerName="System.Data.SqlClient" /> then use this connection string in your Connection object. so your all database related code will point this central server. try this. :-D

            Chirag Patel Programmer Analyst

            G Offline
            G Offline
            gadwy
            wrote on last edited by
            #5

            Thank you for your answer. Yes, I do use a connection string in my application, however I do not store it in App.config. It is contructed at run-time since the localtion of the database depends on where the users decide to install the applications. I will try to move it to App.config. From what you are saying then, my client applications will only have to point to the location of the central server to find the Database and it will work just like if the database was locally installed. Did I understand correctly? Do I need to change my C# code to manage multi-users vs single users? Thank you for you help!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups