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. How to sync Data of 2 c# projects?

How to sync Data of 2 c# projects?

Scheduled Pinned Locked Moved C#
csharpdatabaseasp-netsql-serversysadmin
6 Posts 2 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.
  • A Offline
    A Offline
    akosidandan
    wrote on last edited by
    #1

    Hello experts, I would like to ask how will I sync the data of 2 C# projects I created. I created a windows form application which use sql server 2005 express as its database and I also create an asp.net website that uses sql server 2005 express(The asp website and its database is uploaded to a hosting site). Any comments or suggestions are kindly appreciated. Thanks, DAN

    W 1 Reply Last reply
    0
    • A akosidandan

      Hello experts, I would like to ask how will I sync the data of 2 C# projects I created. I created a windows form application which use sql server 2005 express as its database and I also create an asp.net website that uses sql server 2005 express(The asp website and its database is uploaded to a hosting site). Any comments or suggestions are kindly appreciated. Thanks, DAN

      W Offline
      W Offline
      Wayne Gaylard
      wrote on last edited by
      #2

      You best bet would be to create a WCF service that resides on your websites server. Then both Windows application and Website can access the same database, or the windows app could use it's own database, and only update the main database on the Webserver occasionally.

      ...and I have extensive experience writing computer code, including OIC, BTW, BRB, IMHO, LMAO, ROFL, TTYL.....

      A 1 Reply Last reply
      0
      • W Wayne Gaylard

        You best bet would be to create a WCF service that resides on your websites server. Then both Windows application and Website can access the same database, or the windows app could use it's own database, and only update the main database on the Webserver occasionally.

        ...and I have extensive experience writing computer code, including OIC, BTW, BRB, IMHO, LMAO, ROFL, TTYL.....

        A Offline
        A Offline
        akosidandan
        wrote on last edited by
        #3

        Hello, Thanks for the immediate reply, I would like to ask again. If I create a wcf service in my asp.net website do I still need my windows form application database? Thanks, DAN

        W 1 Reply Last reply
        0
        • A akosidandan

          Hello, Thanks for the immediate reply, I would like to ask again. If I create a wcf service in my asp.net website do I still need my windows form application database? Thanks, DAN

          W Offline
          W Offline
          Wayne Gaylard
          wrote on last edited by
          #4

          That would depend on your requirements. Personally, I like to use a separate database for the Windows application, which would be a local data cache, which can periodically update the main database. This way, if there are any connectivity problems with the Windows application, the users can still carry on. Hope this helps.

          ...and I have extensive experience writing computer code, including OIC, BTW, BRB, IMHO, LMAO, ROFL, TTYL.....

          A 1 Reply Last reply
          0
          • W Wayne Gaylard

            That would depend on your requirements. Personally, I like to use a separate database for the Windows application, which would be a local data cache, which can periodically update the main database. This way, if there are any connectivity problems with the Windows application, the users can still carry on. Hope this helps.

            ...and I have extensive experience writing computer code, including OIC, BTW, BRB, IMHO, LMAO, ROFL, TTYL.....

            A Offline
            A Offline
            akosidandan
            wrote on last edited by
            #5

            Hello, Thanks alot, got a big idea on what you said :) I forgot that it might cause trouble if I use only the database of website. Would you mine if you could give some link about wcf services for my asp.net website. Thanks, DAN

            W 1 Reply Last reply
            0
            • A akosidandan

              Hello, Thanks alot, got a big idea on what you said :) I forgot that it might cause trouble if I use only the database of website. Would you mine if you could give some link about wcf services for my asp.net website. Thanks, DAN

              W Offline
              W Offline
              Wayne Gaylard
              wrote on last edited by
              #6

              You could start with this MSDN article about Hosting and Consuming WCF Services[^]. I leave the rest to you. Good Luck.

              ...and I have extensive experience writing computer code, including OIC, BTW, BRB, IMHO, LMAO, ROFL, TTYL.....

              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