access database on other PC

T

Trinità

Excuse me for my english, i'm Italian.
I have iis and asp page on my computer, but the databse (access database) is
on another computer in the same domain.
which connection string i must use ? can we post an example ?

thank's
 
R

Ray Costanzo [MVP]

Ciao Trinità,

In a default configuration, ASP pages run under the IIS server's local
account called IUSR_computername. If this user tries to access a share on
another computer, it will be denied access to it, because the other computer
is not familiar with the account computername\IUSR_computername. What you
can do is create an account in your domain, setup your page, application, or
site to use this user instead of IUSR_computername, and then grant that user
the necessary NTFS and share permissions to the share on the other server.
At that point, you'd use a normal Access database connection string, but
you'd use a UNC path to the database, i.e.

sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\\FileServerName\ShareName\DatabaseName.mdb;"

Also, see the "If the file is within your LAN" section here for other
options. http://www.aspfaq.com/show.asp?id=2168

Ray at work
 
T

Trinità

Ray Costanzo said:
Ciao Trinità,

In a default configuration, ASP pages run under the IIS server's local
account called IUSR_computername. If this user tries to access a share on
another computer, it will be denied access to it, because the other computer
is not familiar with the account computername\IUSR_computername. What you
can do is create an account in your domain, setup your page, application, or
site to use this user instead of IUSR_computername, and then grant that user
the necessary NTFS and share permissions to the share on the other server.
At that point, you'd use a normal Access database connection string, but
you'd use a UNC path to the database, i.e.

sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\\FileServerName\ShareName\DatabaseName.mdb;"

Also, see the "If the file is within your LAN" section here for other
options. http://www.aspfaq.com/show.asp?id=2168

Ray at work

ok thanks !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top