Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 March 25th, 2005, 01:18 PM
Registered User
 
Join Date: Nov 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using UNC in data source

My ASP connection string works perfect when I use a local drive on my INF Server but when I try to connect to another server using the UNC or a Mapped Drive it fails:
This Works Fine:
Dim objConn
  Set objConn = Server.CreateObject("ADODB.Connection")

  objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & _
               "Data Source= C:\Access2003DB.mdb"

-OR-
   objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & _
               "Data Source= D:\Access2003DB.mdb"

But this does not work:
   objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & _
   "Data Source= \\ServerA\Shared\Database Folder\Access2003DB.mdb"

I would appreciate any recommendations.

 
Old March 27th, 2005, 10:42 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you are using anonymous IIS access then the default windows accounts:
<IUSR_computername> (Internet Guest Account) and IWAM_<machinename> (for out-of-process websites) are local accounts, i.e. they do not have access to remote resources
change the anonymous user account to a domain account, or some other
account that does have access to the remote database.



 
Old March 29th, 2005, 10:02 AM
Registered User
 
Join Date: Nov 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks... I will give it a try.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Convert FileName into UNC name on local Jakub G. ASP.NET 2.0 Professional 3 August 7th, 2007 08:47 AM
UNC Network Path stonesbg ASP.NET 2.0 Basics 1 February 1st, 2007 11:28 AM
Filesystemobject and UNC paths dlfisher1972 Pro VB 6 0 January 5th, 2006 01:44 PM
Get UNC for a local file Mitch Access 0 August 12th, 2003 02:24 PM





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