OpenRowSet on Local server, getting "remote server is denied because no login-mapping exists"

  • Executing:

    Select 1 FROM OPENROWSET

    ('SQLOLEDB','Server=(local);TRUSTED_CONNECTION=YES;','set fmtonly off

    exec msdb.dbo.sp_help_job @job_name = ''JobAcct'', @job_Aspect = ''Job''')

    WHERE current_execution_Step LIKE '%unknown%'

    Getting this error:

    Error Message: Access to the remote server is denied because no login-mapping exists.

    I have seen posts about login mapping with Linked Servers, but this is on the local machine. Any Thoughts.

  • Did u get this resolved? I currently am having the same issue.

    w

  • Use the Server Name instead.

  • Replaceing (local0 with the server name doesn't work either.

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

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