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. How connect two server in the same Query

How connect two server in the same Query

Scheduled Pinned Locked Moved Database
databasesharepointsql-serversysadminhelp
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.
  • R Offline
    R Offline
    Rami Said Abd Alhalim
    wrote on last edited by
    #1

    i used sql server 2005 1- create new query on server 1 2- add exec sp_addlinkedserver server2,'Sql Server' 3- add exec sp_addlinkedsrvlogin 'Server2','false','domain\user','user','password' 4- after that execute for query 5- this Error:(Msg 18452, Level 14, State 1, Line 11 Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. ) Rami Abdalhalim

    P M 2 Replies Last reply
    0
    • R Rami Said Abd Alhalim

      i used sql server 2005 1- create new query on server 1 2- add exec sp_addlinkedserver server2,'Sql Server' 3- add exec sp_addlinkedsrvlogin 'Server2','false','domain\user','user','password' 4- after that execute for query 5- this Error:(Msg 18452, Level 14, State 1, Line 11 Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. ) Rami Abdalhalim

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Rami Said Abd Alhalim wrote:

      Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

      Sounds like you need to make the other server, Server2, allow trusted connections. Have you configured it to allow other connections outside of it's machine?

      "If you divide your text into sentences, it might be possible to understand what you are trying to say." - Guffa

      R 1 Reply Last reply
      0
      • P Paul Conrad

        Rami Said Abd Alhalim wrote:

        Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

        Sounds like you need to make the other server, Server2, allow trusted connections. Have you configured it to allow other connections outside of it's machine?

        "If you divide your text into sentences, it might be possible to understand what you are trying to say." - Guffa

        R Offline
        R Offline
        Rami Said Abd Alhalim
        wrote on last edited by
        #3

        how can that?

        P 1 Reply Last reply
        0
        • R Rami Said Abd Alhalim

          how can that?

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Go into the Surface Area Configuration Manager and tweak with it.

          "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

          1 Reply Last reply
          0
          • R Rami Said Abd Alhalim

            i used sql server 2005 1- create new query on server 1 2- add exec sp_addlinkedserver server2,'Sql Server' 3- add exec sp_addlinkedsrvlogin 'Server2','false','domain\user','user','password' 4- after that execute for query 5- this Error:(Msg 18452, Level 14, State 1, Line 11 Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. ) Rami Abdalhalim

            M Offline
            M Offline
            Marek Grzenkowicz
            wrote on last edited by
            #5

            Isn't server2 configured to use only Windows Authentication?

            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