Can ASP open a DB on user machine? (not on server)
|
Classic ASP DatabasesDiscuss 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
Can ASP open a DB on user machine? (not on server)
I need to open a database on a user machine using an ASP app running on an IIS5 server. The DB will not reside on the server with the ASP files. The user machine is win 2000 or XP, but is not setup with IIS loaded.
My current connection in the ASP script is this:
testsConnect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/test/test.mdb"
This is the error I get:
Microsoft JET Database Engine error '80004005'
"c:\test\test.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides."
It appears the ASP script (JET driver) cannot find the file on the local c: drive of the user.
you should be able to use files on client side. but you need to make sure you use client-side script, VBScript or Javascript, instead of ASP codes, i.e. don't use codes reside <% %>.