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. Database & SysAdmin
  3. Database
  4. Accessing SQL Database From difference Client PCs.

Accessing SQL Database From difference Client PCs.

Scheduled Pinned Locked Moved Database
databasetutorialcsharpsql-server
3 Posts 3 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.
  • J Offline
    J Offline
    jeshra279
    wrote on last edited by
    #1

    Hi All, I Developed an Application in vb.net 2005 using sql server 2005 express. So far I installed in single PCs and is working fine. But now i want the application to be access by client PCs but update the SQL database on a centralized server PC. e.g. MASTER_PC will have the SQL database & the main application will run on PC1, PC2 and PC3; so that users can access the database from their respective PCs. Overall to say, I just need a central location where the SQL database can be stored, and all employees can run and modify the database through their application via internet/LAN(or some other source) Please suggest me how to go ahead with this: 1) As I have 4 PCs in my office, Do i need to create a LAN ? 2) Do I need to do any major modifications in my application? Any links/tutorial/references will be highly appriciated. Thanks R.S.

    T D 2 Replies Last reply
    0
    • J jeshra279

      Hi All, I Developed an Application in vb.net 2005 using sql server 2005 express. So far I installed in single PCs and is working fine. But now i want the application to be access by client PCs but update the SQL database on a centralized server PC. e.g. MASTER_PC will have the SQL database & the main application will run on PC1, PC2 and PC3; so that users can access the database from their respective PCs. Overall to say, I just need a central location where the SQL database can be stored, and all employees can run and modify the database through their application via internet/LAN(or some other source) Please suggest me how to go ahead with this: 1) As I have 4 PCs in my office, Do i need to create a LAN ? 2) Do I need to do any major modifications in my application? Any links/tutorial/references will be highly appriciated. Thanks R.S.

      T Offline
      T Offline
      T2102
      wrote on last edited by
      #2

      For your connection string, it's easiest to troubleshoot a client if you use DSN connection as opposed to ipaddress. I am not sure if you need to create a LAN since I have always set these up when I already had a LAN. If you've already networked your PC's, then the main step is modify the system DSN on each pc. This can be done by modifying registry settings or through odbccad32.exe. I am assuming that you will want to call your database by name. With Oracle, you also might create a TNSNames file. This is not necessary for SQL Server. Clients can access the database when the login with VPN or are on your network at the office. Assuming that your have a Major modifications to your application should not be necessary.

      1 Reply Last reply
      0
      • J jeshra279

        Hi All, I Developed an Application in vb.net 2005 using sql server 2005 express. So far I installed in single PCs and is working fine. But now i want the application to be access by client PCs but update the SQL database on a centralized server PC. e.g. MASTER_PC will have the SQL database & the main application will run on PC1, PC2 and PC3; so that users can access the database from their respective PCs. Overall to say, I just need a central location where the SQL database can be stored, and all employees can run and modify the database through their application via internet/LAN(or some other source) Please suggest me how to go ahead with this: 1) As I have 4 PCs in my office, Do i need to create a LAN ? 2) Do I need to do any major modifications in my application? Any links/tutorial/references will be highly appriciated. Thanks R.S.

        D Offline
        D Offline
        dan sh
        wrote on last edited by
        #3

        1. Aren't your 4 PC's on a single network? If they are, all you need is to set up your server to allow remote connections. Then all your PCs should be able to connect to your database. If they are not on same network, but all are connected to internet, still you can connect to your database. Here[^] is a link to help you. 2. I don't think the code would change.

        50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

        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