Hello,
I have the following code on my asp page:
(Assume ADOCONN to be an ADO connection to an
SQL Server 7 database)
<%
ADOCONN.execute ("BEGIN TRAN"
...some update statements here
ADOCONN.execute ("COMMIT TRAN"
%>
The above code fails on the line where I commit.
The message says thar there is no corresponding BEGIN TRAN
statements. It is as if each ADOCONN.execute is executed
in its own SQL session (hence it cannot see the previous
BEGIN TRAN). Am i correct in this assumption? And also,
what is the work around, if any?
Thanks,
Chris.
I have the following code on my asp page:
(Assume ADOCONN to be an ADO connection to an
SQL Server 7 database)
<%
ADOCONN.execute ("BEGIN TRAN"
...some update statements here
ADOCONN.execute ("COMMIT TRAN"
%>
The above code fails on the line where I commit.
The message says thar there is no corresponding BEGIN TRAN
statements. It is as if each ADOCONN.execute is executed
in its own SQL session (hence it cannot see the previous
BEGIN TRAN). Am i correct in this assumption? And also,
what is the work around, if any?
Thanks,
Chris.