I have multiple recordsets on a page that use the same connection file to
connect to various tables in an access mbd via the usual include file
procedure:
<!--#include file="../Connections/connMydb.asp" -->
Set....
recordset1.ActiveConnection = MM_connMydb_STRING
Set......
recordset2.ActiveConnection = MM_connMydb_STRING
etc
I did have to comment out the 'dim MM_connMydb_STRING' in the file
connMydb.asp which has always worked just fine until this week when on one
server I started to get
the '80004005 unspecified error ' or 'file in use error' on the
Activeconnection line.
I know guys it's a permissions problem, my service provider know its a
permissions problem but now after my site being down for a week they are
trying to blame the error on my DMX coding and have brought in a developer
who has recoded the page to set up a new connection string which makes a
single call on the connMydb.asp which then means the page works. They have
said I should recode all my pages that do something similar.
dim connNew
set connNew = server.createobject("adodb.connection"
connNew.open MM_connMydb_STRING
Set....
recordset1.ActiveConnection = connNew
Set......
recordset2.ActiveConnection = connNew
etc
Of course I now lose the ability to edit my recordset sql via the
applications panel which is really handy and all I am doing in this case is
papering over the serious cracks in the server permissions. I can see that
this code is probably more efficient and helps the page load faster but I
don't see that it is vital to its functioning. Indeed, I can prove it
because I have my DMX multiple connections pages working fine on all of my
other asp/Access sites.
Perhaps to get over this problem I should set up multiple connection files
to the same mdb eg connMydb1.asp, connMydb2.asp etc. Anyway I would be
grateful for your thoughts.
TIA
Struth
"Away from the actual ... everything is virtual"
connect to various tables in an access mbd via the usual include file
procedure:
<!--#include file="../Connections/connMydb.asp" -->
Set....
recordset1.ActiveConnection = MM_connMydb_STRING
Set......
recordset2.ActiveConnection = MM_connMydb_STRING
etc
I did have to comment out the 'dim MM_connMydb_STRING' in the file
connMydb.asp which has always worked just fine until this week when on one
server I started to get
the '80004005 unspecified error ' or 'file in use error' on the
Activeconnection line.
I know guys it's a permissions problem, my service provider know its a
permissions problem but now after my site being down for a week they are
trying to blame the error on my DMX coding and have brought in a developer
who has recoded the page to set up a new connection string which makes a
single call on the connMydb.asp which then means the page works. They have
said I should recode all my pages that do something similar.
dim connNew
set connNew = server.createobject("adodb.connection"
connNew.open MM_connMydb_STRING
Set....
recordset1.ActiveConnection = connNew
Set......
recordset2.ActiveConnection = connNew
etc
Of course I now lose the ability to edit my recordset sql via the
applications panel which is really handy and all I am doing in this case is
papering over the serious cracks in the server permissions. I can see that
this code is probably more efficient and helps the page load faster but I
don't see that it is vital to its functioning. Indeed, I can prove it
because I have my DMX multiple connections pages working fine on all of my
other asp/Access sites.
Perhaps to get over this problem I should set up multiple connection files
to the same mdb eg connMydb1.asp, connMydb2.asp etc. Anyway I would be
grateful for your thoughts.
TIA
Struth
"Away from the actual ... everything is virtual"