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 24th, 2006, 12:36 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

As Woody said, this may or may not be the problem you are having but juding from the description you gave me, it was the best suited fix. (I would suggest also adding the JET driver as it *should* give you a more descriptive error if this happens in the future)

In any case you dont need a second recordset to execute an insert statement you can do:

conn.open
conn.execute([Your insert statement])


-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old October 24th, 2006, 06:30 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A couple of observations:

1 - You might want to verify that your environment is up to date: What version of IIS, what operating system, what version of Access, and what version of the ODBC driver you are using. If you are using a current operating system and IIS, and the Microsoft.Jet.OLEDB.4.0 provider, I am doubtful that your problems have to do with using the same connection to do several database actions.

2 - The issue of the connections remaining open most likely is not due to "re-using" the same connection, but perhaps that you are not using explicitly created connections. If you are passing a connection string in to the recordset.open method you are implicitly creating a connection. Eventually the connection will time out, but if you have a high volumn site it is possible that these timeouts aren't happening quickly enough and you run out of available resources. The Jet database provider and ODBC drivers do not support connection pooling, by the way, so as far as I understand there is not going to be any recycling of the connections.

I advise making sure you are using the Microsoft.Jet.OLEDB.4.0 provider, and then always use an explicit connection that you close when you are done using it.


Woody Z http://www.learntoprogramnow.com
 
Old October 24th, 2006, 06:47 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Its unlikely that he does not have the JET 4.0 as this shipped as early as Access 2000 but to verify check that the dll: MSJET40.DLL exists on your system


-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old October 25th, 2006, 12:25 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by dparsons
 Its unlikely that he does not have the JET 4.0 as this shipped as early as Access 2000 but to verify check that the dll: MSJET40.DLL exists on your system
I am not suggesting that Jet 4.0 isn't on the system. I am saying that the connection string should be using the Jet 4.0 provider rather than the ODBC provider. ADO will use whatever driver or provider you specify, assuming it is available. Of course, if it isn't available you'll get an error stating that.

Again... I believe there are other issues at play here, and it is useful to be using the latest provider, and an OleDb provider at that rather than the antique ODBC driver, which should only be used if you have a very specific reason for using. Things have come a long way since then.

Woody Z http://www.learntoprogramnow.com
 
Old October 25th, 2006, 12:27 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anyway...
 
Old October 25th, 2006, 04:03 AM
Authorized User
 
Join Date: Nov 2005
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by dparsons
 Its unlikely that he does not have the JET 4.0 as this shipped as early as Access 2000 but to verify check that the dll: MSJET40.DLL exists on your system


-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
I have msjet40.dll in the \windows\system32 directory with date of 25/03/2005.
We have Windows Server 2003 Standard edition with all the lates SP, and also SQl Server V8.0

I have removed a page which I created this week, which uses an INSERT after an SELECT. And now everything is working fine again.
Just to be sure I will implement the ideas of you and Woodyz.

Many thx again for the time and effort (both of you!)

Johny






Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC Drivers error '80004005' sanju2006 Classic ASP Professional 3 August 31st, 2006 09:21 AM
ODBC Drivers error '80040e14' kucker6 Classic ASP Databases 2 June 1st, 2006 01:06 PM
Microsoft OLE DB Provider for ODBC Drivers error ' rajiv_software Classic ASP Basics 6 April 28th, 2005 12:52 AM
ODBC Drivers error '80004005' caudy Classic ASP Databases 2 August 20th, 2004 02:20 AM
ODBC Drivers error '80040e14' Need help RBC827 Classic ASP Databases 6 February 27th, 2004 04:57 AM





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