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 October 3rd, 2005, 04:22 PM
Registered User
 
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Can this be done? How would I do this?

Thanks for your help,
Cookster


 
Old October 4th, 2005, 02:44 PM
Authorized User
 
Join Date: Sep 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 <% %>.

 
Old October 5th, 2005, 10:08 AM
Registered User
 
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I didn't think of that. I knew it, but I was so focused on ASP, client side VB script didn't occur to me.

Thanks again






Similar Threads
Thread Thread Starter Forum Replies Last Post
Retore Db from a remote machine to a local machine srkvellanki BOOK: Beginning SQL 0 October 3rd, 2008 05:17 PM
asp can't open db when db open by other program datuk Classic ASP Professional 3 June 13th, 2006 06:10 PM
Can't able to Open Word File in Client Machine senthilavs Classic ASP Basics 1 June 10th, 2006 01:02 PM
connecting web server and remote db server via asp moreyt Classic ASP Databases 0 May 31st, 2005 12:13 AM
DB Restore User Logins onto different server plandis98 SQL Server 2000 1 November 25th, 2004 10:36 PM





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