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. Database & SysAdmin
  3. Database
  4. "Connecting to sql server files" error

"Connecting to sql server files" error

Scheduled Pinned Locked Moved Database
databasesysadminsql-serverhelp
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.
  • realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote on last edited by
    #1

    Vista/64 VS2008 I'm to add a SQL Server database object to my project, but when I try, I get this error message: Connecting to sql server files (*.mdf) require sql server express 2005 to function properly. Well, it is installed, and when I run express manager studio, everything seems to be fine. I can also create connections in the server explorer in vsiual studio. When I googled the error, there was exactly one hit that I can't browse top (because of the restrictions on our network).

    .45 ACP - because shooting twice is just silly
    -----
    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
    -----
    "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

    T L D 3 Replies Last reply
    0
    • realJSOPR realJSOP

      Vista/64 VS2008 I'm to add a SQL Server database object to my project, but when I try, I get this error message: Connecting to sql server files (*.mdf) require sql server express 2005 to function properly. Well, it is installed, and when I run express manager studio, everything seems to be fine. I can also create connections in the server explorer in vsiual studio. When I googled the error, there was exactly one hit that I can't browse top (because of the restrictions on our network).

      .45 ACP - because shooting twice is just silly
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

      T Offline
      T Offline
      Tim Carmichael
      wrote on last edited by
      #2

      Can you post either the link you can't get to or the exact search phrase in case someone CAN get to it and then render help? Tim

      1 Reply Last reply
      0
      • realJSOPR realJSOP

        Vista/64 VS2008 I'm to add a SQL Server database object to my project, but when I try, I get this error message: Connecting to sql server files (*.mdf) require sql server express 2005 to function properly. Well, it is installed, and when I run express manager studio, everything seems to be fine. I can also create connections in the server explorer in vsiual studio. When I googled the error, there was exactly one hit that I can't browse top (because of the restrictions on our network).

        .45 ACP - because shooting twice is just silly
        -----
        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Hi John, IMO the relevant part of http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/6615124e-5501-4fb2-b498-638d3a7f01c6[^] is this: I encountered the same error message while trying to create a data connection from Visual Studio 2005 using the Server Explorer. This is what I did: # 1. Started Visual Studio 2005 # 2. Opened the Server Explorer (View | Server Explorer) # 3. Right-clicked the Data Connections node # 4. Selected Create New SQL Server Database... from the context menu # 5. Selected my computer from the Server Name dropdown list # 6. Selected authentication method (Use Windows Authentication) # 7. Typed a name in the New Database Name field # 8. Hit the OK button That's when I received the following error message An error has occured while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:40 – Could not open a connection to SQL Server) It made absolutely no sense. I wasn't trying to connect to a remote computer. I was simply trying to connect to the SQL Server 2005 Express Edition which was installed on my local computer during the Visual Studio 2005 installation. After numerous attempts on several computers, I finally realized what I was doing wrong. By adding the database instance name to the server name (# 5), it actually worked. Instead of selecting from the dropdown list, I entered \SQLExpress manually. That was obviously the problem. SQL Server 2005 Express Edition is obviously installed as a named instance, since one has to provide the instance name in addition to the server name (even when there is only one instance running on the requested server). :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        Prolific encyclopedia fixture proof-reader browser patron addict?
        We all de

        realJSOPR 1 Reply Last reply
        0
        • L Luc Pattyn

          Hi John, IMO the relevant part of http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/6615124e-5501-4fb2-b498-638d3a7f01c6[^] is this: I encountered the same error message while trying to create a data connection from Visual Studio 2005 using the Server Explorer. This is what I did: # 1. Started Visual Studio 2005 # 2. Opened the Server Explorer (View | Server Explorer) # 3. Right-clicked the Data Connections node # 4. Selected Create New SQL Server Database... from the context menu # 5. Selected my computer from the Server Name dropdown list # 6. Selected authentication method (Use Windows Authentication) # 7. Typed a name in the New Database Name field # 8. Hit the OK button That's when I received the following error message An error has occured while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:40 – Could not open a connection to SQL Server) It made absolutely no sense. I wasn't trying to connect to a remote computer. I was simply trying to connect to the SQL Server 2005 Express Edition which was installed on my local computer during the Visual Studio 2005 installation. After numerous attempts on several computers, I finally realized what I was doing wrong. By adding the database instance name to the server name (# 5), it actually worked. Instead of selecting from the dropdown list, I entered \SQLExpress manually. That was obviously the problem. SQL Server 2005 Express Edition is obviously installed as a named instance, since one has to provide the instance name in addition to the server name (even when there is only one instance running on the requested server). :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


          Prolific encyclopedia fixture proof-reader browser patron addict?
          We all de

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #4

          We're not running sqlexpress...

          .45 ACP - because shooting twice is just silly
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

          1 Reply Last reply
          0
          • realJSOPR realJSOP

            Vista/64 VS2008 I'm to add a SQL Server database object to my project, but when I try, I get this error message: Connecting to sql server files (*.mdf) require sql server express 2005 to function properly. Well, it is installed, and when I run express manager studio, everything seems to be fine. I can also create connections in the server explorer in vsiual studio. When I googled the error, there was exactly one hit that I can't browse top (because of the restrictions on our network).

            .45 ACP - because shooting twice is just silly
            -----
            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

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

            Does this[^] helps?

            L 1 Reply Last reply
            0
            • D dan sh

              Does this[^] helps?

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              Does it relate to SQL Express? :^)

              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


              Prolific encyclopedia fixture proof-reader browser patron addict?
              We all depend on the beast below.


              D 1 Reply Last reply
              0
              • L Luc Pattyn

                Does it relate to SQL Express? :^)

                Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                Prolific encyclopedia fixture proof-reader browser patron addict?
                We all depend on the beast below.


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

                Luc Pattyn wrote:

                Does it relate to SQL Express?

                :confused:

                L 1 Reply Last reply
                0
                • D dan sh

                  Luc Pattyn wrote:

                  Does it relate to SQL Express?

                  :confused:

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #8

                  http://www.codeproject.com/Messages/3447012/Re-Connecting-to-sql-server-files-error.aspx[^]

                  Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                  Prolific encyclopedia fixture proof-reader browser patron addict?
                  We all depend on the beast below.


                  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