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. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

Scheduled Pinned Locked Moved Database
databasesql-serversysadminsecurityhelp
4 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.
  • N Offline
    N Offline
    nazimghori
    wrote on last edited by
    #1

    Hello, I connected two computers in LAN 1st having IP 192.168.1.1 and 2nd having IP 192.168.1.2 and i am having sql server management studio express 2005 installed on 1st computer now when i run exe from 192.168.1.2 it throughs an error like. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. where as it runs perfetly on 1st computer. my conection string is

    Public DBConn As ADODB.Connection

    DBConn.ConnectionString = "Provider=MSDATASHAPE; Data Provider=SQLOLEDB.1;Data Source=TOSHIBA\SQLEXPRESS; Initial Catalog=" & App.Path & "\AVON_AIR_Data.mdf; User ID=sa; Password=; Integrated Security=SSPI; Persist Security Info=False;"
    DBConn.Open DBConn.ConnectionString

    Please suggest Thank you.

    T L M 3 Replies Last reply
    0
    • N nazimghori

      Hello, I connected two computers in LAN 1st having IP 192.168.1.1 and 2nd having IP 192.168.1.2 and i am having sql server management studio express 2005 installed on 1st computer now when i run exe from 192.168.1.2 it throughs an error like. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. where as it runs perfetly on 1st computer. my conection string is

      Public DBConn As ADODB.Connection

      DBConn.ConnectionString = "Provider=MSDATASHAPE; Data Provider=SQLOLEDB.1;Data Source=TOSHIBA\SQLEXPRESS; Initial Catalog=" & App.Path & "\AVON_AIR_Data.mdf; User ID=sa; Password=; Integrated Security=SSPI; Persist Security Info=False;"
      DBConn.Open DBConn.ConnectionString

      Please suggest Thank you.

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

      There are so many reasons for this error. This bunch has the solution(s), check it. Steps to troubleshoot SQL connectivity issues[^] SQL Server 2005 Connectivity Issue Troubleshoot - Part I[^] Troubleshoot Connectivity Issue in SQL Server 2005 - Part II[^] Troubleshoot Connectivity Issue in SQL Server 2005 - Part III[^] BTW I gave you this bunch also for future errors.

      thatraja


      **My Tip/Tricks
      My Dad had a Heart Attack on this day so don't...
      **

      1 Reply Last reply
      0
      • N nazimghori

        Hello, I connected two computers in LAN 1st having IP 192.168.1.1 and 2nd having IP 192.168.1.2 and i am having sql server management studio express 2005 installed on 1st computer now when i run exe from 192.168.1.2 it throughs an error like. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. where as it runs perfetly on 1st computer. my conection string is

        Public DBConn As ADODB.Connection

        DBConn.ConnectionString = "Provider=MSDATASHAPE; Data Provider=SQLOLEDB.1;Data Source=TOSHIBA\SQLEXPRESS; Initial Catalog=" & App.Path & "\AVON_AIR_Data.mdf; User ID=sa; Password=; Integrated Security=SSPI; Persist Security Info=False;"
        DBConn.Open DBConn.ConnectionString

        Please suggest Thank you.

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

        For remote connections, the Initial Catalog attribute must specify the database name alone, you cannot attach a local database. And the other problem is, you can either specify Integrated Security or User ID/Password, but not both.

        1 Reply Last reply
        0
        • N nazimghori

          Hello, I connected two computers in LAN 1st having IP 192.168.1.1 and 2nd having IP 192.168.1.2 and i am having sql server management studio express 2005 installed on 1st computer now when i run exe from 192.168.1.2 it throughs an error like. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. where as it runs perfetly on 1st computer. my conection string is

          Public DBConn As ADODB.Connection

          DBConn.ConnectionString = "Provider=MSDATASHAPE; Data Provider=SQLOLEDB.1;Data Source=TOSHIBA\SQLEXPRESS; Initial Catalog=" & App.Path & "\AVON_AIR_Data.mdf; User ID=sa; Password=; Integrated Security=SSPI; Persist Security Info=False;"
          DBConn.Open DBConn.ConnectionString

          Please suggest Thank you.

          M Offline
          M Offline
          Monjurul Habib
          wrote on last edited by
          #4

          I think the problem is with your connection string. Follow the link find your desired one. http://www.connectionstrings.com/[^] Enjoy :)

          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