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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to connect DB in Lan Connection?

How to connect DB in Lan Connection?

Scheduled Pinned Locked Moved Visual Basic
databasecomsysadmintutorialquestion
4 Posts 4 Posters 1 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.
  • J Offline
    J Offline
    JC KaNNaN
    wrote on last edited by
    #1

    hi, i did simple db connect with server and client across LAN. actually i pass connection string from global file. how to give server location for client side during run time. or give some other suggestion. plz

    Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph" Mail To : foreverkans@gmail.com

    L D 2 Replies Last reply
    0
    • J JC KaNNaN

      hi, i did simple db connect with server and client across LAN. actually i pass connection string from global file. how to give server location for client side during run time. or give some other suggestion. plz

      Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph" Mail To : foreverkans@gmail.com

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

      We used to connect to the MS Access file through the network. What you need is the shared folder over a LAN where DB file is placed Now to access the file give path as \\<IP Address>\<Folder Name>\<File Name>

      Regards Aman Bhullar www.arlivesupport.com[^]

      L 1 Reply Last reply
      0
      • J JC KaNNaN

        hi, i did simple db connect with server and client across LAN. actually i pass connection string from global file. how to give server location for client side during run time. or give some other suggestion. plz

        Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph" Mail To : foreverkans@gmail.com

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        All you do is change the connection string to reflect the name of the new server. It's nothing more than simple string manipulation. You can create your connection string with a well-known tag in place of the server name, then just search for and replace the tag in the string with the name of the server. The result is your updated connection string.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        1 Reply Last reply
        0
        • L Lost User

          We used to connect to the MS Access file through the network. What you need is the shared folder over a LAN where DB file is placed Now to access the file give path as \\<IP Address>\<Folder Name>\<File Name>

          Regards Aman Bhullar www.arlivesupport.com[^]

          L Offline
          L Offline
          loid grey manuel
          wrote on last edited by
          #4

          well, i have a similar issue that i am working on. maybe this will work on Win XP OS's.. but i tried it on my Win Vista and 7, i get an error that says. cannot open DB, restrictions are blah blah blah..you do not have enough permission. but the folder/file is shared with full read/write control. even in my Xp workstation, sometimes i get the same error. maybe because there are a lot of computer trying access the db simultaneously? any ideas on Win Vista and 7?

          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