Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database Connection between servers?

Status
Not open for further replies.

gbaughma

IS-IT--Management
Staff member
Nov 21, 2003
4,772
US
Hi there!

I have some ASP scripts running on one server, that I would like to have pull data from another server (Either through DSN or a DSN-less connection, I don't care).

I'm using Access on the data server, and IIS on the script server, but I'm having issues with permissions or something, it states that "File open exclusively or you do not have permission to access this file." If I move the file over to the box that is running the scripts, everything is OK.

Can someone point me in the correct direction to set up permissions so the scripts can connect?

Thanks in advance!



Just my 2¢
-Cole's Law: Shredded cabbage

--Greg
 
The default security for IIS is anonymous access which uses an account IUSR_<ServerName>

This default account is local to the machine running IIS and it cannot access network resources.

You could user the IIS Admin tool to do one of the following:
A. Disable anonymous access for all pages that need to use network resources or ...
B. Keep anonymous access but specify a particular ActiveDirectory account be used instead (A.K.A. a domain account)
 
  • Thread starter
  • Moderator
  • #3
Solution!

Credentials can be fixed by using the:

Code:
Set objLogon = Server.CreateObject("LoginAdmin.ImpersonateUser")

That fixed it. :)



Just my 2¢
-Cole's Law: Shredded cabbage

--Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top