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. Visual Basic
  4. Error in connecting to database.

Error in connecting to database.

Scheduled Pinned Locked Moved Visual Basic
databasehelpsysadmintools
8 Posts 4 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.
  • M Offline
    M Offline
    MissionSuccess
    wrote on last edited by
    #1

    sorry i dont get any seperate section for VB i have a problem related to vb. i have developed an application thru vb and sql-server. when i m using it frm my pc it works fine but frm client pc it does not connect to database. error on this line.... conn.open() on client pc sql-server client utility is installed wht to do.. i m very much confused reply ASAP.. Ajay

    C 1 Reply Last reply
    0
    • M MissionSuccess

      sorry i dont get any seperate section for VB i have a problem related to vb. i have developed an application thru vb and sql-server. when i m using it frm my pc it works fine but frm client pc it does not connect to database. error on this line.... conn.open() on client pc sql-server client utility is installed wht to do.. i m very much confused reply ASAP.. Ajay

      C Offline
      C Offline
      col1blb
      wrote on last edited by
      #2

      What is your connection string? Are you using a DSN or DSN-Less connection? BLee

      M 1 Reply Last reply
      0
      • C col1blb

        What is your connection string? Are you using a DSN or DSN-Less connection? BLee

        M Offline
        M Offline
        MissionSuccess
        wrote on last edited by
        #3

        my connection string is Constr = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;password=;Initial Catalog=TestCapex;Data Source=192.168.41.2" m using DSN-Less connection. plz help i m very upset..

        J N 2 Replies Last reply
        0
        • M MissionSuccess

          my connection string is Constr = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;password=;Initial Catalog=TestCapex;Data Source=192.168.41.2" m using DSN-Less connection. plz help i m very upset..

          J Offline
          J Offline
          jsampsonPC
          wrote on last edited by
          #4

          192.168... is an internal IP address. Make sure you use the correct IP address if your client is outside of your local network.

          Jonathan Sampson www.SampsonResume.com

          M 1 Reply Last reply
          0
          • M MissionSuccess

            my connection string is Constr = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;password=;Initial Catalog=TestCapex;Data Source=192.168.41.2" m using DSN-Less connection. plz help i m very upset..

            N Offline
            N Offline
            nlarson11
            wrote on last edited by
            #5

            Unless the IP you gave us is fake, the 192.168 is a "safe" ip address used internally for networks. can the user's PC get to that IP address? ping it from the user's pc to check.

            M 1 Reply Last reply
            0
            • N nlarson11

              Unless the IP you gave us is fake, the 192.168 is a "safe" ip address used internally for networks. can the user's PC get to that IP address? ping it from the user's pc to check.

              M Offline
              M Offline
              MissionSuccess
              wrote on last edited by
              #6

              i have pinged and getting the reply frm 192.168.41.2 frm my clients PC. also my client is in our local network.. any suggetion

              N 1 Reply Last reply
              0
              • J jsampsonPC

                192.168... is an internal IP address. Make sure you use the correct IP address if your client is outside of your local network.

                Jonathan Sampson www.SampsonResume.com

                M Offline
                M Offline
                MissionSuccess
                wrote on last edited by
                #7

                ya my client is in our local network.. and one thing which shd be noticed here is that i m getting access frm my PC but not frm my client's PC.. now i have given public access to the database. any suggetion

                1 Reply Last reply
                0
                • M MissionSuccess

                  i have pinged and getting the reply frm 192.168.41.2 frm my clients PC. also my client is in our local network.. any suggetion

                  N Offline
                  N Offline
                  nlarson11
                  wrote on last edited by
                  #8
                  1. by chance is your sql server using a different port then what is the default? try adding the port to the data source 192.168.41.2,????? i've seen where my PC doesn't have to give the port but other pc's do...explain that... 2) if that's not the case, try setting up a temporary DSN and make sure the PC itself has no issue connecting to the database. 3) is the PC up to speed on MDAC versions
                  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