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 Error

Connection Error

Scheduled Pinned Locked Moved C#
helpdatabasesecurityquestion
5 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.
  • P Offline
    P Offline
    pirogramci
    wrote on last edited by
    #1

    Hello Everybody, In my application connection string is below and the database working on another computer. Unfortunately I couldn't connect it. What could be the problem? (I checked the IP number and it is correct. Also I could connect local database). I tried some other connection strings but none of them could connect. Thanks a lot. SqlConnection conn = new SqlConnection(("Data Source=10.11.11.126;Initial Catalog=northwind;Integrated Security=SSPI"));

    S A P 4 Replies Last reply
    0
    • P pirogramci

      Hello Everybody, In my application connection string is below and the database working on another computer. Unfortunately I couldn't connect it. What could be the problem? (I checked the IP number and it is correct. Also I could connect local database). I tried some other connection strings but none of them could connect. Thanks a lot. SqlConnection conn = new SqlConnection(("Data Source=10.11.11.126;Initial Catalog=northwind;Integrated Security=SSPI"));

      S Offline
      S Offline
      Stephan Samuel
      wrote on last edited by
      #2

      What's the error you got? Is this ASP.NET code, or in some WinForm app? You're probably dealing with an authentication error: the user that the code is running as doesn't have login rights to the server.

      1 Reply Last reply
      0
      • P pirogramci

        Hello Everybody, In my application connection string is below and the database working on another computer. Unfortunately I couldn't connect it. What could be the problem? (I checked the IP number and it is correct. Also I could connect local database). I tried some other connection strings but none of them could connect. Thanks a lot. SqlConnection conn = new SqlConnection(("Data Source=10.11.11.126;Initial Catalog=northwind;Integrated Security=SSPI"));

        A Offline
        A Offline
        alyeasad
        wrote on last edited by
        #3

        try adding userid and password , if that dont work also try name="That comp name" If only they could see what I see in my mind

        1 Reply Last reply
        0
        • P pirogramci

          Hello Everybody, In my application connection string is below and the database working on another computer. Unfortunately I couldn't connect it. What could be the problem? (I checked the IP number and it is correct. Also I could connect local database). I tried some other connection strings but none of them could connect. Thanks a lot. SqlConnection conn = new SqlConnection(("Data Source=10.11.11.126;Initial Catalog=northwind;Integrated Security=SSPI"));

          A Offline
          A Offline
          alyeasad
          wrote on last edited by
          #4

          try adding userid and password of the comp u r trying to connect to, if that dont work also try name="That comp name". If only they could see what I see in my mind

          1 Reply Last reply
          0
          • P pirogramci

            Hello Everybody, In my application connection string is below and the database working on another computer. Unfortunately I couldn't connect it. What could be the problem? (I checked the IP number and it is correct. Also I could connect local database). I tried some other connection strings but none of them could connect. Thanks a lot. SqlConnection conn = new SqlConnection(("Data Source=10.11.11.126;Initial Catalog=northwind;Integrated Security=SSPI"));

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

            I solved it. I used a winform. After I added my user name (Windows authentication) I could connect. However if I use the same connection string which is below I couldn't connect in Asp application. Is there any idea? Thanks. SqlConnection conn = new SqlConnection(("Data Source=10.11.11.133;Initial Catalog=northwind;Integrated Security=SSPI"));

            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