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 7th, 2007, 02:13 PM
Registered User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default connecting to excel spreadsheet using asp

I am trying to open a connection to an excel spreadsheet that resides on a network using classic asp.
I have had success connecting locally but I must not be entering the correct parameters for a network connect.
Here is my code:

objConn2.ConnectionString="Provider=Microsoft.Jet. OLEDB.4.0;Data Source=\\server name\root directory\subdirectory\subdirectory\spreadsheet.xl s;""Extended Properties=Excel 8.0;HDR=Yes"""

I have also tried...
objConn2.ConnectionString="Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=" & Server.mappath("/"&"spreadsheet.xls") & ";UID=admin;"

also tried this...

objConn2.ConnectionString="Driver={Microsoft Excel Driver (*.xls)};DriverId=790;DBQ=\\server name\root directory\subdirectory\subdirectory\spreadsheet.xl s;DefaultDir=\\server name\root directory\subdirectory\subdirectory\

I tried supplanting the ip address for server name without luck.

I am currently receiving this error...

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Excel Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x900 Thread 0x268 DBC 0x10dbf04 Excel'.

Any help would be appreciated.
 
Old March 21st, 2007, 04:02 AM
Authorized User
 
Join Date: Aug 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bishnupokhrel Send a message via Yahoo to bishnupokhrel
Default

hi codetoad,

how about mapping the remote path to some drive letter?
i think sufficient permission must be given to access the path too.


Regards
Bishnu Pokharel
[email protected]
http://www.bishnupokharel.com.np/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Generate Excel spreadsheet with ASP.Net (VB) James Diamond ASP.NET 1.0 and 1.1 Professional 2 December 11th, 2013 08:15 AM
Excel Spreadsheet Help SteveV VBScript 0 October 10th, 2006 04:42 PM
Excel Spreadsheet Help SteveV BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 0 October 10th, 2006 04:40 PM
Connecting to Excel Database with ASP thehaz Classic ASP Databases 2 March 24th, 2004 05:00 PM





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