Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2003, 06:42 AM
Registered User
 
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default accessing remote database

I need to access a database via ASP that doesn't reside on the server
where IIS is running.

Using IIS 5.1 I'm not able to map a directory that is not on the server running IIS.
Example: I can't map the dir. \\someserver\databases\data.mdb
I'm not able to map the database even if i connect a new drive unit.

So i tried to use DSN for the remote db but when I connect to the DSN I get an error,
while if the DSN points to a local database it works fine.
Why?
Can IIS map a database through the LAN?

thanks in advance
 
Old November 12th, 2003, 07:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

It's all to do with permissions. Take a look at this article which addresses how to connect to a remote Access database from ASP
http://support.microsoft.com/?kbid=161333

If any of it doesn't make sense, just ask :)

rgds
Phil
 
Old November 14th, 2003, 09:39 AM
Registered User
 
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I read the article and now I know it's a problem of permissions.
As it's said on the article, I created an user with the name IUSR_P253 (P253 it's the IIS machine's name) on the other machine running 98 where the database resides.
I set the same password for the user IUSR_P253 on the win98 pc (database machine)
and the user IUSR_P253 on the machine running IIS (Win XP)
I added a virtual directory in IIS with the path \\p600\mydb\database.mdb and when I was asked for the username e password I set the IUSR_P253 with the correct password: but the new directory has been created with an error icon and I'm not able to use it.
What's is wrong???

thanks



 
Old November 14th, 2003, 10:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

You don't need to map a virtual directory in IIS. Just use the UNC path
"\\p600\mydb\database.mdb" in your connection string.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing a remote sqlserver Through Proxy Server? mizimizi Classic ASP Databases 0 July 23rd, 2006 05:49 AM
Error 7399 when accessing remote db ?! VerdaFolio Access 1 June 2nd, 2004 10:47 AM
Business Delegate Pattern for Accessing Remote EJB mlumsden BOOK: Expert One-on-One J2EE Design and Development 1 September 25th, 2003 03:31 PM
Accessing a remote web site Ray Pinnegar Access VBA 2 July 24th, 2003 08:34 PM
Error 7399 when accessing REMOTE .mdb VerdaFolio SQL Server 2000 2 July 9th, 2003 01:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.