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. Web Development
  3. ASP.NET
  4. Sql Server does not exists or acces denied

Sql Server does not exists or acces denied

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesql-serversysadmin
7 Posts 2 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.
  • P Offline
    P Offline
    pdnitin
    wrote on last edited by
    #1

    Hi, I have an application running on a server. I have ported this application to other server but it gives me the above error Sql Server does not exists or access denied error.I would like to know if i have to make any changes to the connection string. Can any one help. Thanks in advance, Nitin.

    T 2 Replies Last reply
    0
    • P pdnitin

      Hi, I have an application running on a server. I have ported this application to other server but it gives me the above error Sql Server does not exists or access denied error.I would like to know if i have to make any changes to the connection string. Can any one help. Thanks in advance, Nitin.

      T Offline
      T Offline
      Thea Burger
      wrote on last edited by
      #2

      Hi, It should not be a problem, does you connection string look like this: data source=MYDEVSERVER;initial catalog=northwind;user id=sa;password=1234dev;Trusted_Connection=False"; HTH, Thea

      P 1 Reply Last reply
      0
      • T Thea Burger

        Hi, It should not be a problem, does you connection string look like this: data source=MYDEVSERVER;initial catalog=northwind;user id=sa;password=1234dev;Trusted_Connection=False"; HTH, Thea

        P Offline
        P Offline
        pdnitin
        wrote on last edited by
        #3

        Hi thea , thanks yaa it is like this i had a question coz i also thought it wont be a connection string problem as it works on one server and yaa connection string is the same Regards, Nitin.

        1 Reply Last reply
        0
        • P pdnitin

          Hi, I have an application running on a server. I have ported this application to other server but it gives me the above error Sql Server does not exists or access denied error.I would like to know if i have to make any changes to the connection string. Can any one help. Thanks in advance, Nitin.

          T Offline
          T Offline
          Thea Burger
          wrote on last edited by
          #4

          So is the SQL and the application on different computers? Can you connect to this SQL server from the computer on which the application resides? Let's say through Query Analyzer? Your connection string looks fine. Where does your connection string reside? Web.config? Try connecting to another SQL Server from your application. HTH, Thea

          P 1 Reply Last reply
          0
          • T Thea Burger

            So is the SQL and the application on different computers? Can you connect to this SQL server from the computer on which the application resides? Let's say through Query Analyzer? Your connection string looks fine. Where does your connection string reside? Web.config? Try connecting to another SQL Server from your application. HTH, Thea

            P Offline
            P Offline
            pdnitin
            wrote on last edited by
            #5

            Hi, sorry for responding late, as i said i have ported to application to a server which has windows 2003 installed on it and the Msde and .net framework which are built apart from theese i dont have any tools on the server from which i access the database which is onto a different server now i had a doubt whether do we need a sql Client installed on our machine or we could do without it and also i have written the code into Web.config file which runs well when i run it through my local machine and it connects to the database.but when the same file put on the server flashes me the error ,I hope i am being more explanatory and not confusing. Thanks in advance Nitin.

            T 1 Reply Last reply
            0
            • P pdnitin

              Hi, sorry for responding late, as i said i have ported to application to a server which has windows 2003 installed on it and the Msde and .net framework which are built apart from theese i dont have any tools on the server from which i access the database which is onto a different server now i had a doubt whether do we need a sql Client installed on our machine or we could do without it and also i have written the code into Web.config file which runs well when i run it through my local machine and it connects to the database.but when the same file put on the server flashes me the error ,I hope i am being more explanatory and not confusing. Thanks in advance Nitin.

              T Offline
              T Offline
              Thea Burger
              wrote on last edited by
              #6

              Hi Nitin, You don't have to install Sql Client. If I understand correctly you have application1 on your local machine and it connects fine to MSDE db1 on win2003 server. But when you move application1 to win2003 server it does not connect to MSDE db1? If it was the other way around there could be more reasons, but I'm real sorry, I don't have an answer here. :(( I did get this link, maybe it can help you. Good luck, Thea

              P 1 Reply Last reply
              0
              • T Thea Burger

                Hi Nitin, You don't have to install Sql Client. If I understand correctly you have application1 on your local machine and it connects fine to MSDE db1 on win2003 server. But when you move application1 to win2003 server it does not connect to MSDE db1? If it was the other way around there could be more reasons, but I'm real sorry, I don't have an answer here. :(( I did get this link, maybe it can help you. Good luck, Thea

                P Offline
                P Offline
                pdnitin
                wrote on last edited by
                #7

                Hi thea , Thanks i will try to explain a little more I have an application(x) on my local machine say machine 1 which connects to a database server (y) say machine 2 which is running . i port ths application to a machine which has only the MSDE and .net framework installed ie inbuilt in win 2003 ok now i am not connecting to the MSDE db 1 but instead trying to connect to machine 2 database from this machine say machine 3. and in the process i get an error.

                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