Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Link Server Security Issue,not able to access from SQL ID Expand / Collapse
Author
Message
Posted Wednesday, October 1, 2008 1:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, May 27, 2014 3:13 AM
Points: 9, Visits: 73
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 ?
Post #578887
Posted Wednesday, October 1, 2008 7:02 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 5:45 AM
Points: 10,206, Visits: 13,153
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.



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #579026
Posted Friday, October 3, 2008 9:10 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, May 27, 2014 3:13 AM
Points: 9, Visits: 73
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

Post #580360
Posted Wednesday, July 23, 2014 7:41 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Yesterday @ 11:03 AM
Points: 1, Visits: 24
Hi All,

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

Regards,
Vikas.M.S
Post #1595485
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse