Database access?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adrian Parker

    Database access?

    Can VB connect to, and send SQL commands to an Access database sitting on a
    remote machine, via the internet?

    I don't want to just make an internet-viewable [non-secure] share.


    Adrian


  • Norman Yuan

    #2
    Re: Database access?

    ASP is one of the many ways (since you post in VB group)

    "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
    news:kvI3c.2603 8$hG.295095@new s20.bellglobal. com...[color=blue]
    > Can VB connect to, and send SQL commands to an Access database sitting on[/color]
    a[color=blue]
    > remote machine, via the internet?
    >
    > I don't want to just make an internet-viewable [non-secure] share.
    >
    >
    > Adrian
    >
    >[/color]


    Comment

    • Adrian Parker

      #3
      Re: Database access?


      "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
      news:5kL3c.7617 65$X%5.239518@p d7tw2no...[color=blue]
      > ASP is one of the many ways (since you post in VB group)[/color]

      How would that work?

      Right now I have a VB stand alone client. I want it to connect to an MDB
      file, as to add/delete/update records, which is on a separate machine.

      Would ASP sit on the same computer as the MDB file, and capture connections
      from the VB program and then send SQL commands to the MDB?

      Can VB not connect directly to the remote MDB?


      Adrian

      [color=blue]
      >
      > "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
      > news:kvI3c.2603 8$hG.295095@new s20.bellglobal. com...[color=green]
      > > Can VB connect to, and send SQL commands to an Access database sitting[/color][/color]
      on[color=blue]
      > a[color=green]
      > > remote machine, via the internet?
      > >
      > > I don't want to just make an internet-viewable [non-secure] share.
      > >
      > >
      > > Adrian
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Norman Yuan

        #4
        Re: Database access?

        According to your original post, you want retrieve/save/update data from the
        Internet access, so yo have to learn some basic concept of web application.

        A website on the NET is usually publicly accessible. Theoretically, you can
        put your db on a regular website and allow anyone read/write to the db file,
        but I am sure the db file would be gone/damaged right away: who want to
        expose his data that way?

        So, comes web app, where user send request (retrieving/updating data) from
        web browser to web server, web server makes access to database on user's
        behalf...

        Web app can be wirten in many different ways, and ASP probably is easiest if
        you already know VB. Grab a book on ASP (there should be a lot of them in
        discounted price, 'cause ASP.NET is currently hot ones, which is different
        from ASP), you may be able to do it in just a few days.

        "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
        news:PPM3c.3982 $j05.258522@new s20.bellglobal. com...[color=blue]
        >
        > "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
        > news:5kL3c.7617 65$X%5.239518@p d7tw2no...[color=green]
        > > ASP is one of the many ways (since you post in VB group)[/color]
        >
        > How would that work?
        >
        > Right now I have a VB stand alone client. I want it to connect to an MDB
        > file, as to add/delete/update records, which is on a separate machine.
        >
        > Would ASP sit on the same computer as the MDB file, and capture[/color]
        connections[color=blue]
        > from the VB program and then send SQL commands to the MDB?
        >
        > Can VB not connect directly to the remote MDB?
        >
        >
        > Adrian
        >
        >[color=green]
        > >
        > > "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
        > > news:kvI3c.2603 8$hG.295095@new s20.bellglobal. com...[color=darkred]
        > > > Can VB connect to, and send SQL commands to an Access database sitting[/color][/color]
        > on[color=green]
        > > a[color=darkred]
        > > > remote machine, via the internet?
        > > >
        > > > I don't want to just make an internet-viewable [non-secure] share.
        > > >
        > > >
        > > > Adrian
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Adrian Parker

          #5
          Re: Database access?


          "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
          news:HlT3c.1980 0$Up2.6723@pd7t w1no...[color=blue]
          > According to your original post, you want retrieve/save/update data from[/color]
          the[color=blue]
          > Internet access, so yo have to learn some basic concept of web[/color]
          application.

          So Access cannot act as a server, like other Database suites can?

          Example: I install MySQL on machine A which is on the internet. Machine B,
          somewhere else in the world, can connect to that database using machine A's
          IP address.

          [color=blue]
          > A website on the NET is usually publicly accessible.[/color]

          There is no website involved.

          [color=blue]
          > Theoretically, you can
          > put your db on a regular website and allow anyone read/write to the db[/color]
          file,[color=blue]
          > but I am sure the db file would be gone/damaged right away: who want to
          > expose his data that way?
          >
          > So, comes web app, where user send request (retrieving/updating data) from
          > web browser to web server, web server makes access to database on user's
          > behalf...[/color]

          With other database applications, a piece of software can connect to the
          remote database more or less directly.

          [color=blue]
          > Web app can be wirten in many different ways, and ASP probably is easiest[/color]
          if[color=blue]
          > you already know VB.[/color]

          I'd sooner user PERL or PHP. .NET stuff is not portable, and at least two
          of my machines are not Windows-based.



          Adrian

          [color=blue]
          > Grab a book on ASP (there should be a lot of them in
          > discounted price, 'cause ASP.NET is currently hot ones, which is different
          > from ASP), you may be able to do it in just a few days.
          >
          > "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
          > news:PPM3c.3982 $j05.258522@new s20.bellglobal. com...[color=green]
          > >
          > > "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
          > > news:5kL3c.7617 65$X%5.239518@p d7tw2no...[color=darkred]
          > > > ASP is one of the many ways (since you post in VB group)[/color]
          > >
          > > How would that work?
          > >
          > > Right now I have a VB stand alone client. I want it to connect to an[/color][/color]
          MDB[color=blue][color=green]
          > > file, as to add/delete/update records, which is on a separate machine.
          > >
          > > Would ASP sit on the same computer as the MDB file, and capture[/color]
          > connections[color=green]
          > > from the VB program and then send SQL commands to the MDB?
          > >
          > > Can VB not connect directly to the remote MDB?
          > >
          > >
          > > Adrian
          > >
          > >[color=darkred]
          > > >
          > > > "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
          > > > news:kvI3c.2603 8$hG.295095@new s20.bellglobal. com...
          > > > > Can VB connect to, and send SQL commands to an Access database[/color][/color][/color]
          sitting[color=blue][color=green]
          > > on[color=darkred]
          > > > a
          > > > > remote machine, via the internet?
          > > > >
          > > > > I don't want to just make an internet-viewable [non-secure] share.
          > > > >
          > > > >
          > > > > Adrian
          > > > >
          > > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Norman Yuan

            #6
            Re: Database access?

            *.mdb is file based database, user must have read/write permission to access
            data in it.

            "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
            news:XA34c.6604 $j05.298282@new s20.bellglobal. com...[color=blue]
            >
            > "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
            > news:HlT3c.1980 0$Up2.6723@pd7t w1no...[color=green]
            > > According to your original post, you want retrieve/save/update data from[/color]
            > the[color=green]
            > > Internet access, so yo have to learn some basic concept of web[/color]
            > application.
            >
            > So Access cannot act as a server, like other Database suites can?
            >
            > Example: I install MySQL on machine A which is on the internet. Machine[/color]
            B,[color=blue]
            > somewhere else in the world, can connect to that database using machine[/color]
            A's[color=blue]
            > IP address.
            >
            >[color=green]
            > > A website on the NET is usually publicly accessible.[/color]
            >
            > There is no website involved.
            >
            >[color=green]
            > > Theoretically, you can
            > > put your db on a regular website and allow anyone read/write to the db[/color]
            > file,[color=green]
            > > but I am sure the db file would be gone/damaged right away: who want to
            > > expose his data that way?
            > >
            > > So, comes web app, where user send request (retrieving/updating data)[/color][/color]
            from[color=blue][color=green]
            > > web browser to web server, web server makes access to database on user's
            > > behalf...[/color]
            >
            > With other database applications, a piece of software can connect to the
            > remote database more or less directly.
            >
            >[color=green]
            > > Web app can be wirten in many different ways, and ASP probably is[/color][/color]
            easiest[color=blue]
            > if[color=green]
            > > you already know VB.[/color]
            >
            > I'd sooner user PERL or PHP. .NET stuff is not portable, and at least two
            > of my machines are not Windows-based.
            >
            >
            >
            > Adrian
            >
            >[color=green]
            > > Grab a book on ASP (there should be a lot of them in
            > > discounted price, 'cause ASP.NET is currently hot ones, which is[/color][/color]
            different[color=blue][color=green]
            > > from ASP), you may be able to do it in just a few days.
            > >
            > > "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
            > > news:PPM3c.3982 $j05.258522@new s20.bellglobal. com...[color=darkred]
            > > >
            > > > "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
            > > > news:5kL3c.7617 65$X%5.239518@p d7tw2no...
            > > > > ASP is one of the many ways (since you post in VB group)
            > > >
            > > > How would that work?
            > > >
            > > > Right now I have a VB stand alone client. I want it to connect to an[/color][/color]
            > MDB[color=green][color=darkred]
            > > > file, as to add/delete/update records, which is on a separate machine.
            > > >
            > > > Would ASP sit on the same computer as the MDB file, and capture[/color]
            > > connections[color=darkred]
            > > > from the VB program and then send SQL commands to the MDB?
            > > >
            > > > Can VB not connect directly to the remote MDB?
            > > >
            > > >
            > > > Adrian
            > > >
            > > >
            > > > >
            > > > > "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
            > > > > news:kvI3c.2603 8$hG.295095@new s20.bellglobal. com...
            > > > > > Can VB connect to, and send SQL commands to an Access database[/color][/color]
            > sitting[color=green][color=darkred]
            > > > on
            > > > > a
            > > > > > remote machine, via the internet?
            > > > > >
            > > > > > I don't want to just make an internet-viewable [non-secure] share.
            > > > > >
            > > > > >
            > > > > > Adrian
            > > > > >
            > > > > >
            > > > >
            > > > >
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Adrian Parker

              #7
              Re: Database access?


              "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
              news:EF44c.7778 88$ts4.210915@p d7tw3no...[color=blue]
              > *.mdb is file based database, user must have read/write permission to[/color]
              access[color=blue]
              > data in it.[/color]

              And I'm asking if there is an existing program that will sit on a given
              port, listen for connections, and then pass those connections to the
              database.

              [color=blue]
              >
              > "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
              > news:XA34c.6604 $j05.298282@new s20.bellglobal. com...[color=green]
              > >
              > > "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
              > > news:HlT3c.1980 0$Up2.6723@pd7t w1no...[color=darkred]
              > > > According to your original post, you want retrieve/save/update data[/color][/color][/color]
              from[color=blue][color=green]
              > > the[color=darkred]
              > > > Internet access, so yo have to learn some basic concept of web[/color]
              > > application.
              > >
              > > So Access cannot act as a server, like other Database suites can?
              > >
              > > Example: I install MySQL on machine A which is on the internet.[/color][/color]
              Machine[color=blue]
              > B,[color=green]
              > > somewhere else in the world, can connect to that database using machine[/color]
              > A's[color=green]
              > > IP address.
              > >
              > >[color=darkred]
              > > > A website on the NET is usually publicly accessible.[/color]
              > >
              > > There is no website involved.
              > >
              > >[color=darkred]
              > > > Theoretically, you can
              > > > put your db on a regular website and allow anyone read/write to the db[/color]
              > > file,[color=darkred]
              > > > but I am sure the db file would be gone/damaged right away: who want[/color][/color][/color]
              to[color=blue][color=green][color=darkred]
              > > > expose his data that way?
              > > >
              > > > So, comes web app, where user send request (retrieving/updating data)[/color][/color]
              > from[color=green][color=darkred]
              > > > web browser to web server, web server makes access to database on[/color][/color][/color]
              user's[color=blue][color=green][color=darkred]
              > > > behalf...[/color]
              > >
              > > With other database applications, a piece of software can connect to the
              > > remote database more or less directly.
              > >
              > >[color=darkred]
              > > > Web app can be wirten in many different ways, and ASP probably is[/color][/color]
              > easiest[color=green]
              > > if[color=darkred]
              > > > you already know VB.[/color]
              > >
              > > I'd sooner user PERL or PHP. .NET stuff is not portable, and at least[/color][/color]
              two[color=blue][color=green]
              > > of my machines are not Windows-based.
              > >
              > >
              > >
              > > Adrian
              > >
              > >[color=darkred]
              > > > Grab a book on ASP (there should be a lot of them in
              > > > discounted price, 'cause ASP.NET is currently hot ones, which is[/color][/color]
              > different[color=green][color=darkred]
              > > > from ASP), you may be able to do it in just a few days.
              > > >
              > > > "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in message
              > > > news:PPM3c.3982 $j05.258522@new s20.bellglobal. com...
              > > > >
              > > > > "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
              > > > > news:5kL3c.7617 65$X%5.239518@p d7tw2no...
              > > > > > ASP is one of the many ways (since you post in VB group)
              > > > >
              > > > > How would that work?
              > > > >
              > > > > Right now I have a VB stand alone client. I want it to connect to[/color][/color][/color]
              an[color=blue][color=green]
              > > MDB[color=darkred]
              > > > > file, as to add/delete/update records, which is on a separate[/color][/color][/color]
              machine.[color=blue][color=green][color=darkred]
              > > > >
              > > > > Would ASP sit on the same computer as the MDB file, and capture
              > > > connections
              > > > > from the VB program and then send SQL commands to the MDB?
              > > > >
              > > > > Can VB not connect directly to the remote MDB?
              > > > >
              > > > >
              > > > > Adrian
              > > > >
              > > > >
              > > > > >
              > > > > > "Adrian Parker" <adrian.parker@ NOSPAMsympatico .ca> wrote in[/color][/color][/color]
              message[color=blue][color=green][color=darkred]
              > > > > > news:kvI3c.2603 8$hG.295095@new s20.bellglobal. com...
              > > > > > > Can VB connect to, and send SQL commands to an Access database[/color]
              > > sitting[color=darkred]
              > > > > on
              > > > > > a
              > > > > > > remote machine, via the internet?
              > > > > > >
              > > > > > > I don't want to just make an internet-viewable [non-secure][/color][/color][/color]
              share.[color=blue][color=green][color=darkred]
              > > > > > >
              > > > > > >
              > > > > > > Adrian
              > > > > > >
              > > > > > >
              > > > > >
              > > > > >
              > > > >
              > > > >
              > > >
              > > >[/color]
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • Gemini

                #8
                Re: Database access?

                Adrian Parker wrote:
                [color=blue]
                > "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
                > news:EF44c.7778 88$ts4.210915@p d7tw3no...
                >[color=green]
                >>*.mdb is file based database, user must have read/write permission to[/color]
                >
                > access
                >[color=green]
                >>data in it.[/color]
                >
                >
                > And I'm asking if there is an existing program that will sit on a given
                > port, listen for connections, and then pass those connections to the
                > database.[/color]

                No. You can't. Access does not/can not act as a server. You need a DB
                Server. MySQL works great, and there are tools availible that can
                convert a .mdb file to SQL statments for import into MySQL. MS SQL
                *might* allow you to interact with an .mdb file, but, my guess is not.
                It would have to be imported first; but, I no nothing of MS SQL, so, I
                could be wrong on that

                g
                z


                Comment

                • Adrian Parker

                  #9
                  Re: Database access?


                  "Gemini" <spam@nospam.or g> wrote in message
                  news:ae5b9$4056 0df1$d89e2d68$1 5404@dcanet.all thenewsgroups.c om...[color=blue]
                  > Adrian Parker wrote:
                  >[color=green]
                  > > "Norman Yuan" <normanyuan@Rem oveThis.shaw.ca > wrote in message
                  > > news:EF44c.7778 88$ts4.210915@p d7tw3no...
                  > >[color=darkred]
                  > >>*.mdb is file based database, user must have read/write permission to[/color]
                  > >
                  > > access
                  > >[color=darkred]
                  > >>data in it.[/color]
                  > >
                  > >
                  > > And I'm asking if there is an existing program that will sit on a given
                  > > port, listen for connections, and then pass those connections to the
                  > > database.[/color]
                  >
                  > No. You can't. Access does not/can not act as a server. You need a DB
                  > Server. MySQL works great, and there are tools availible that can
                  > convert a .mdb file to SQL statments for import into MySQL. MS SQL
                  > *might* allow you to interact with an .mdb file, but, my guess is not.
                  > It would have to be imported first; but, I no nothing of MS SQL, so, I
                  > could be wrong on that[/color]

                  Ok, thank you.


                  Adrian


                  Comment

                  Working...