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. problem occurred while establishing a connection to SQL Server

problem occurred while establishing a connection to SQL Server

Scheduled Pinned Locked Moved Database
helpsysadmindatabasesql-server
27 Posts 7 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 janat_Al_donia

    hi every body im having a big problem. icant connect to my data base. i have this error A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) i dont know what to do please help me

    M Offline
    M Offline
    Md Marufuzzaman
    wrote on last edited by
    #21

    Do you trying to connect SQL Server via a proxy server... please let me know.

    I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.


    Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you. Thanks Md. Marufuzzaman

    1 Reply Last reply
    0
    • J janat_Al_donia

      i enabled it and it suggest to restart sql what to do next????

      I Offline
      I Offline
      i i i
      wrote on last edited by
      #22

      nothing else if you are connecting through Named Pipes then you should enable Named Pipes and if you are connecting through TCP/IP then you should enable your tcp/ip protocol , make sure your SQL Browser is also started....

      Best Of Regards, SOFTDEV If you have knowledge, let others light their candles at it

      1 Reply Last reply
      0
      • C Coding C

        Restart your pc or restart the SQL services. Control Panel > Administrative Tools > Services

        Coding C# ExciteTemplate

        I Offline
        I Offline
        i i i
        wrote on last edited by
        #23

        services can be restarted by right clicking your sql server in Management studio and clicking on restart or from windows services (typing services.msc in run will open)

        Best Of Regards, SOFTDEV If you have knowledge, let others light their candles at it

        J 1 Reply Last reply
        0
        • I i i i

          services can be restarted by right clicking your sql server in Management studio and clicking on restart or from windows services (typing services.msc in run will open)

          Best Of Regards, SOFTDEV If you have knowledge, let others light their candles at it

          J Offline
          J Offline
          janat_Al_donia
          wrote on last edited by
          #24

          sorry for being late.......please tell me how to enable sql browser

          I 1 Reply Last reply
          0
          • J janat_Al_donia

            sorry for being late.......please tell me how to enable sql browser

            I Offline
            I Offline
            i i i
            wrote on last edited by
            #25

            in sql server configuration area Sql server services

            Best Of Regards, SOFTDEV If you have knowledge, let others light their candles at it

            1 Reply Last reply
            0
            • J janat_Al_donia

              hi every body im having a big problem. icant connect to my data base. i have this error A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) i dont know what to do please help me

              H Offline
              H Offline
              Henry Minute
              wrote on last edited by
              #26

              You are using forward slashes throughout your connection string. Change them all to back slashes. ./SQLExpress should be .\SQLExpress Your AttachDBFileName is C:/whatever/wherever/......... and should be C:\whatever\wherever\......... If you do that all should work. When you get an error message you should pay attention to what it says. The error message talked about the SQL Server. The only reference to the server was ./SQLExpress, so that is where you should start looking. Changing it, as I suggest would possibly have caused a different error (for the slashes in your path, although that might have worked, I haven't tested it). Always read your error messages carefully! :)

              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

              1 Reply Last reply
              0
              • J janat_Al_donia

                hi every body im having a big problem. icant connect to my data base. i have this error A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) i dont know what to do please help me

                A Offline
                A Offline
                Abhishek Sur
                wrote on last edited by
                #27

                This is the most common problem when Database server couldnt be reached. :) Check if you made firewall exemption to the SQL Server browser

                Abhishek Sur


                My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

                **Don't forget to click "Good Answer" if you like to.

                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