473,396 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

works at home but not on host servers

Hi

I have played with this a bit and got it boiling down to the following
problem.

I do a call to my access database and get a recordset back. then whilst this
RS is still open I create a new RS and do another query. the second fails.

The thing is it works fine on my local ACCESS DB but when i upload it to my
providers server it fails on the second query.

Thanks for any help

D.

Here is the code

dim c1
c1 = "Driver=Microsoft Access Driver (*.mdb);DBQ=..."

' call one
dim rs, cn1
set cn1 = server.CreateObject("ADODB.Connection")
cn1.ConnectionString = c1
cn1.Open

set rs = server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = cn1
rs.Open "select * from blog"
Response.Write rs.Fields(2) & "<p />"

'call two
dim rrs, ccn1
set ccn1 = server.CreateObject("ADODB.Connection")
ccn1.ConnectionString = c1
ccn1.Open ' this is line 25 - where it is saying the failure occurs

set rrs = server.CreateObject("ADODB.Recordset")
rrs.ActiveConnection = ccn1
rrs.Open "select * from category"
Response.Write rrs.Fields(1) & "<p />"

ccn1.Close
set ccn1 = nothing
set rrs = nothing
' end of call two
cn1.Close
set cn1 = nothing
set rs = nothing
'end of call one
The output is like this --

Tigers in red weather (this is from the blog db)

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver]General error Unable to open
registry key 'Temporary (volatile) Jet DSN for process 0x1e94 Thread 0x1e60
DBC 0xfb20064 Jet'.

/hb/testdb.asp, line 25


Nov 13 '05 #1
1 1560
On Wed, 13 Jul 2005 13:38:14 GMT, "diablo" <di****@noplace.com> wrote:
Hi

I have played with this a bit and got it boiling down to the following
problem.

I do a call to my access database and get a recordset back. then whilst this
RS is still open I create a new RS and do another query. the second fails.

The thing is it works fine on my local ACCESS DB but when i upload it to my
providers server it fails on the second query.

Thanks for any help

D.

Here is the code

dim c1
c1 = "Driver=Microsoft Access Driver (*.mdb);DBQ=..."

' call one
dim rs, cn1
set cn1 = server.CreateObject("ADODB.Connection")
cn1.ConnectionString = c1
cn1.Open

set rs = server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = cn1
rs.Open "select * from blog"
Response.Write rs.Fields(2) & "<p />"

'call two
dim rrs, ccn1
set ccn1 = server.CreateObject("ADODB.Connection")
ccn1.ConnectionString = c1
ccn1.Open ' this is line 25 - where it is saying the failure occurs

set rrs = server.CreateObject("ADODB.Recordset")
rrs.ActiveConnection = ccn1
rrs.Open "select * from category"
Response.Write rrs.Fields(1) & "<p />"

ccn1.Close
set ccn1 = nothing
set rrs = nothing
' end of call two
cn1.Close
set cn1 = nothing
set rs = nothing
'end of call one
The output is like this --

Tigers in red weather (this is from the blog db)

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver]General error Unable to open
registry key 'Temporary (volatile) Jet DSN for process 0x1e94 Thread 0x1e60
DBC 0xfb20064 Jet'.

/hb/testdb.asp, line 25

Hi
This indicates that you do not have the necessary permissions to read
the registry key on the server (whereas you do on your own machine).
But why and what it is doing with this key I have no idea.
http://support.microsoft.com/default...;en-us;Q306518
(Troubleshooting guide for 80004005 errors in Active Server Pages and
Microsoft Data Access Components)
doesn't help much.

Why do you have two connections to the same database? (excuse me if I
am talking rubbish)
Are you using Access97? Many ISPs claim that you must use at least
2000 (or rather, JET4).
David

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Spud | last post by:
<?php // pullpage function by Nick bouton http://www.nickbouton.com/. $CustomerID = "IDHERE"; $method = "POST"; $host = "xml.mydata.com"; $usepath = "/xml.asp"; //print all vars in an...
1
by: genetic.error | last post by:
I installed VS.NET 2003 on Windows 2000 Pro SP3. Since doing so, I have no internet connection. Also, I have no access to my home network. I've done everything I can think of to correct the...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
5
by: Grigs | last post by:
Hello, I have a project that contains a WebService that works great when connecting to it on my Localhost. Once we post the files to the test web server, all of the pages that do not touch the...
3
tolkienarda
by: tolkienarda | last post by:
hi all i have a problem i have a script that i got working exactly the way i wanted it. and then i tried to intrigate it into the site and it totaly stopped working. below is the original code ...
19
by: hansBKK | last post by:
Upfront disclaimer - I am a relative newbie, just starting out learning about PHP, mostly by researching, installing and playing with different scripts. I am looking for a host that will provide...
16
by: Hans Fredrik Nordhaug | last post by:
I'm trying to write to a file in the current directory - no remote files. The subject says it all - I can add that both the directory and the file is wordwritable. This happens on a (quite good)...
5
by: =?Utf-8?B?ZGF2ZWJ5dGhlc2Vh?= | last post by:
Hi, This is just a general question regarding the possibility of hosting a webservice on my PC at home (Windows XP). I may upgrade to XP Professional so I can get access to IIS. I was hoping I...
6
by: Laphan | last post by:
Hi All We've had a Fasthosts reseller account for quite a few years now and have been relatively happy until now. Unfortunately they've started to push out MySQL DBs (I think 4.2.x or 5) that...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.