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. C#
  4. Connection string Error VS to Mysql

Connection string Error VS to Mysql

Scheduled Pinned Locked Moved C#
databasesysadmincsharpmysqlsql-server
15 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.
  • N N Mohamed rafi

    I don't understand that link sir, please send some more article pages

    OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #6

    What part did you not understand? Let's take the instructions one by one...

    Quote:

    Create an empty text file somewhere on your hard disk, called "myfile.udl".

    Have you done that?

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    N 1 Reply Last reply
    0
    • OriginalGriffO OriginalGriff

      What part did you not understand? Let's take the instructions one by one...

      Quote:

      Create an empty text file somewhere on your hard disk, called "myfile.udl".

      Have you done that?

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      N Offline
      N Offline
      N Mohamed rafi
      wrote on last edited by
      #7

      Created sir this is the location sir D:\Official\ASP.NET\Projects\Basic After that what i have to do sir?

      OriginalGriffO 1 Reply Last reply
      0
      • N N Mohamed rafi

        Created sir this is the location sir D:\Official\ASP.NET\Projects\Basic After that what i have to do sir?

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #8

        The link gives teh next instruction:

        Quote:

        Double click the file, and the "Data Link Properties" dialog will open:

        Did you do that? Do you get where I am going with this? Or do I need to copy and paste the whole Tip sentence by sentence as a separate reply to check you have done it?

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        N 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          The link gives teh next instruction:

          Quote:

          Double click the file, and the "Data Link Properties" dialog will open:

          Did you do that? Do you get where I am going with this? Or do I need to copy and paste the whole Tip sentence by sentence as a separate reply to check you have done it?

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          N Offline
          N Offline
          N Mohamed rafi
          wrote on last edited by
          #9

          ok sir data link properties opened and i clicked test connection it shows error like Test connection faile because of an error initializing provider invalid authorization specification then what i have to do now sir?

          OriginalGriffO 1 Reply Last reply
          0
          • N N Mohamed rafi

            ok sir data link properties opened and i clicked test connection it shows error like Test connection faile because of an error initializing provider invalid authorization specification then what i have to do now sir?

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #10

            Did you follow the instructions between "open the file" and "press the button"? It's saying that the information you provided for that server / database is not valid: the login name, or password for example. If you filled in the info from your existing connection string, then that's why that failed as well: you aren't authorised under that login. We can't fix that, short of coming round to your place and typing on your keyboard - which would cost you a considerable amount of money in time, flights, hotels, taxis, expenses ... So it's probably a good idea if you find out what your login info should be from the person who installed the DB!

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            N 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              Did you follow the instructions between "open the file" and "press the button"? It's saying that the information you provided for that server / database is not valid: the login name, or password for example. If you filled in the info from your existing connection string, then that's why that failed as well: you aren't authorised under that login. We can't fix that, short of coming round to your place and typing on your keyboard - which would cost you a considerable amount of money in time, flights, hotels, taxis, expenses ... So it's probably a good idea if you find out what your login info should be from the person who installed the DB!

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

              N Offline
              N Offline
              N Mohamed rafi
              wrote on last edited by
              #11

              ok sir i will try with correct username pwd and get back you soon

              OriginalGriffO 1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                Read the error message, it is not only explicit, it tells you what to do to fix it:

                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)

                This may help: Simple SQL Connection String Creation[^]

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

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

                Brilliant utility, I could really have done with it yesterday.

                N 1 Reply Last reply
                0
                • N N Mohamed rafi

                  ok sir i will try with correct username pwd and get back you soon

                  OriginalGriffO Offline
                  OriginalGriffO Offline
                  OriginalGriff
                  wrote on last edited by
                  #13

                  :thumbsup:

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  1 Reply Last reply
                  0
                  • L Lost User

                    Brilliant utility, I could really have done with it yesterday.

                    N Offline
                    N Offline
                    N Mohamed rafi
                    wrote on last edited by
                    #14

                    In Datalink properties if i click server name refresh it shows empty only sir. how to bring that there i don't know sir. My userid password is userid is root and pwd is mysql but if i enter that it shows error sir on data link properties.

                    L 1 Reply Last reply
                    0
                    • N N Mohamed rafi

                      In Datalink properties if i click server name refresh it shows empty only sir. how to bring that there i don't know sir. My userid password is userid is root and pwd is mysql but if i enter that it shows error sir on data link properties.

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

                      I am not @OriginalGriff.

                      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