Link Server Security Issue,not able to access from SQL ID

  • Hi,

    I have created a linked server which reads data from an excel file

    i am able to run query against this link server and fetch data

    my ID has sysadmin rights on this server

    however our application ID which is a SQL Login is not able to access this linked server and gets following error

    Msg 7416, Level 16, State 2, Line 2

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

    as far as excel file security is concerned "everyone" has read rights on it

    can anyone help what rights should i give to SQL ID to access this linked server ?

  • When you go to the security tab of the linked server in SSMS what is there? You either need to provide a mapping in the top area or select an option in the lower half. Also you need to verify that the SQL Server Service account has network access.

  • Hi Jack,

    Thanks for your response

    I have made SQL Service Account administrator on the server

    given SQL Service Account all the rights on the excel file

    mapped local SQL Login to the remote ID of SQL Service Account

    however i got this error

    OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "balle" returned message "Not a valid account name or password.".

    Msg 7399, Level 16, State 1, Line 2

    The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "balle" reported an error. Authentication failed.

    Msg 7303, Level 16, State 1, Line 2

    Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "balle".

    interesting if i give local SQL ID sysadmin rights then its able to access linked server

    Please help

  • Hi All,

    Even i am facing the similar issue. Would u please help on the same.

    Regards,

    Vikas.M.S

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

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