There is no remote user 'sa'mapped tp local user '(null)' from the remote server 'SQLServer2000'.

  • ALL:

    I want to setup a linked server from SQLServer 2000 SP4/Win2003 to SQL Server 2005 SP1 / Win 2003.

    1) Right click "Linked Servers" - New Linked Server

    2) Linked Server: SQLServer2000

    3) Server Type: Select SQL Server

    4) Security: Select "Be made using this security context;

    Remote login: sa

    With password: YYYYYYYY

    Note: The server SQLServer2000 can be connected from SQL Server 2005 with sa/YYYYYYYY.

    5) Click OK and get error:

    There is no remote user 'sa'mapped tp local user '(null)' from the remote server 'SQLServer2000'. (Microsoft SQL Server, Error: 15466)

    Any suggestion will be appreciated.

  • Check if executing this query on the source server helps

    ALTER SERVICE MASTER KEY FORCE REGENERATE

    More information on this command here

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

  • Adiga:

    Thanks for the reply.

    I setup the linked server by,

    1) Right click "Linked Servers" - New Linked Server

    2) Linked Server: SQLServer2000

    3) Server Type: Select SQL Server

    4) Security:

    click Add

    Local Login: LS (under sysadmin role)

    Remote User: LKS (under sysadmin role

    Remote password: YYYYYYYY

    5) OK

    There is no error and SQLServer2000 is appeared on Linked Server.

    Then I run SELECT * FROM SQLServer2000.msbd.dbo.backupfile, and got error:

    OLE DB provider "SQLNCLI" for linked server "SQLServer2000" returned message "Invalid authorization specification".

    Msg 7399, Level 16, State 1, Line 5

    The OLE DB provider "SQLNCLI" for linked server "SQLServer2000" reported an error. Authentication failed.

    Msg 7303, Level 16, State 1, Line 5

    Cannot initialize the data source object of OLE DB provider "SQLNCLI" for linked server "SQLServer2000".

    Any suggestion?

    Thanks

  • Try adding the Linked Server using the below query.

    EXEC sp_addlinkedserver 'RemoteServer\InstanceName', 'FALSE', 'locallogin','remotelogin','remotepassword'

    GO

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply