sql server - How can we overcome double authentication for sp_linkedserver? (Already set up through DB authentication) -


so we've set sp_linkedserver on sql server connect remote access database.

assume path database w:/breakfast/pancakes/secretpancakes/pancakedb.accdb

we know username , password actual database

password: ally0urpancakearebelongtous!

the problem is, there authentication "secretpancakes" directory.

this authentication is

username: superchef

password: ilovesf00d


here code making sp_linkedserver...

/****** object: linkedserver [pancakedb] script date: 06/13/2012 10:08:21 ******/ exec master.dbo.sp_addlinkedserver @server = n'pancakedb', @srvproduct=n'access 2007', @provider=n'microsoft.ace.oledb.12.0', @datasrc=n'w:/breakfast/pancakes/secretpancakes/pancakedb.accdb ', @provstr=n';pwd=ally0urpancakearebelongtous' /* security reasons linked server remote logins password changed ######## */ exec master.dbo.sp_addlinkedsrvlogin @rmtsrvname=n'pancakedb',@useself=n'false',@locallogin=null,@rmtuser=null,@rmtpassword=null 

the rmtuser , rmtpassword database though correct? thing is, if go on actual computer , open protected directory (secretpancakes) , ask windows remember credentials, it'll work fine on computer, not on others'.

i'm trying fix don't have objnetwork.mapnetworkdrive(driveletter, remotepath, false, userid, userpwd) thing, pain. (objnetwork = microsoft.visualbasic.createobject("wscript.network"))

so question is: how pass along credentials folder access within linkedserver?

update: screen shot may help...? enter image description here

also, change these credentials credentials used folder right? enter image description here

the sql server service account needs have access folder access file is, should work. said, user name , password access db have nothing whether or not has permissions on file system.

ideally, should not use drive letters here , use unc path instead, avoid drive mapping issue. way allow sql server read file make sure has appropriate share , ntfs permissions so.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -