Ok I have a dilemma with my web host. If you want to skip the drama, scroll down to THE QUESTION.
They recently upgraded my account and moved me to all new servers, this was at the end of Feb. On Mar 13 they did some patches, including W2K3 SP2. On Mar 14 I started receiving error reports from my client about pages throwing the following error:
A trappable error (C0000005) occurred in an external object. The script cannot continue running.
Since then I have been going back and forth with them. They are telling me its my code. But the same code works on every other web server I have run it on. They claim that some of their security settings or something is causing us to have to change some of our code to make it work.
Instead of creating and ADODB.Connection and then setting that connection as active for recordsets by using rs.ActiveConnection = dbc, they want us to instead use rs.Open strSQL,strConn.
THE QUESTION:
Is there any valid reason to use rs.Open strSQL,strConn over rs.ActiveConnection = dbc? Is there a security issue I am unaware of? Is this method more/less efficient? I assume I still need to create a data connection to execute insert/update/delete queries.....or is there a way to do it that I am unaware of?
I've been coding this same way for years and am pretty much self taught, so I am open to the possibility that the way I have been doing it is not the best way. Enlighten me oh bright Tek-Tips posters!!
-Greg
They recently upgraded my account and moved me to all new servers, this was at the end of Feb. On Mar 13 they did some patches, including W2K3 SP2. On Mar 14 I started receiving error reports from my client about pages throwing the following error:
A trappable error (C0000005) occurred in an external object. The script cannot continue running.
Since then I have been going back and forth with them. They are telling me its my code. But the same code works on every other web server I have run it on. They claim that some of their security settings or something is causing us to have to change some of our code to make it work.
Instead of creating and ADODB.Connection and then setting that connection as active for recordsets by using rs.ActiveConnection = dbc, they want us to instead use rs.Open strSQL,strConn.
THE QUESTION:
Is there any valid reason to use rs.Open strSQL,strConn over rs.ActiveConnection = dbc? Is there a security issue I am unaware of? Is this method more/less efficient? I assume I still need to create a data connection to execute insert/update/delete queries.....or is there a way to do it that I am unaware of?
I've been coding this same way for years and am pretty much self taught, so I am open to the possibility that the way I have been doing it is not the best way. Enlighten me oh bright Tek-Tips posters!!
-Greg