ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 27th, 2003, 07:40 AM
Agarash Agarash is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: South Africa
Posts: 53 Agarash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 35 sec
Reputation Power: 6
99% using Excel as Datasource...

im reading excel as a data source, and everything seems to be fine except this damm error that im getting... can anyone please tell me whats wrong??

thanks.

the 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 0x6dc Thread 0x78c DBC 0x1649024 Excel'.

my code:

'## The Data to extract
<% szSQL = "select * from Events"%>
'## Create and open the connection
<% Conn.ConnectionString = "DBQ=" & XLFile & ";DRIVER=Microsoft Excel Driver (*.xls);UID=admin"
Conn.Open%>

'## set the cursor to be static.
<%rs.cursortype = 3 ' adStatic.%>
'## open the recordset
<% rs.open szSQL, conn%>

'## Disconnect recordset, eliminate connection
<% rs.activeconnection = nothing
Conn.Close
Set Conn=nothing%>

'## iterate through the recordset.
<%while not rs.eof
response.write RS("ParentID") & " -- "
response.write RS("Configitem") & " -- "
response.write RS("Department") & " -- "
rs.movenext
wend


thanks.
__________________
"Morgoth i Cried
All Hope is Gone
But i Swear REVENGE
Hear my Oath!!"

Reply With Quote
  #2  
Old October 27th, 2003, 03:30 PM
Tim_Lensen's Avatar
Tim_Lensen Tim_Lensen is offline
Wonder of the world
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: the Netherlands
Posts: 22 Tim_Lensen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try closing your connection after doing the while loop. That may work.

Good luck,

Tim

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > 99% using Excel as Datasource...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway