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. Desktop application and DB on web server

Desktop application and DB on web server

Scheduled Pinned Locked Moved C#
questioncsharpdatabasesysadmin
5 Posts 5 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
    AlexB47
    wrote on last edited by
    #1

    Hi, I'm new in DB programming in .net context and I have a question. If I use a DB in my internet site (es www.mysite.org), I can quering this DB from my desktop application using ADO.net? Thank a lot.

    Alex

    realJSOPR L P 3 Replies Last reply
    0
    • A AlexB47

      Hi, I'm new in DB programming in .net context and I have a question. If I use a DB in my internet site (es www.mysite.org), I can quering this DB from my desktop application using ADO.net? Thank a lot.

      Alex

      realJSOPR Online
      realJSOPR Online
      realJSOP
      wrote on last edited by
      #2

      Yes, as long as the database server can be connected to remotely. If it can't be done that way, you can always create a web service to handle the access, and just connect to the web service instead.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

      M 1 Reply Last reply
      0
      • A AlexB47

        Hi, I'm new in DB programming in .net context and I have a question. If I use a DB in my internet site (es www.mysite.org), I can quering this DB from my desktop application using ADO.net? Thank a lot.

        Alex

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        If it's hosted then the database will be likely hiding behind a firewall. Yup, webservices are the way to go :)

        I are Troll :suss:

        1 Reply Last reply
        0
        • realJSOPR realJSOP

          Yes, as long as the database server can be connected to remotely. If it can't be done that way, you can always create a web service to handle the access, and just connect to the web service instead.

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

          M Offline
          M Offline
          Manfred Rudolf Bihy
          wrote on last edited by
          #4

          My 5! Good answer since it's most likely that the webserver is behind a firewall. A webservice is a good and viable solution.

          1 Reply Last reply
          0
          • A AlexB47

            Hi, I'm new in DB programming in .net context and I have a question. If I use a DB in my internet site (es www.mysite.org), I can quering this DB from my desktop application using ADO.net? Thank a lot.

            Alex

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            I second (third?) a Web Service. But I question the need to query from the client side. You'll have to be very wary of SQL injection, but you can probably minimize the risks.

            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