I keep getting this error when i try to execute a sp from my asp page.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION.
I can run the stored procedure in Query analyzer and it works great. So the problem has to be from the asp page to the database somewhere.
here is the code i am using.
<%
set Command1 = Server.CreateObject("ADODB.Command"
Command1.ActiveConnection = MM_SSS_Coe_STRING
Command1.CommandText = "dbo.sp_appendimportdata"
Command1.Parameters.Append Command1.CreateParameter("@OPERATOR_ID", 3, 1,4,Command1__OPERATOR_ID)
Command1.Parameters.Append Command1.CreateParameter("@JOB_ID", 3, 1,4,Command1__JOB_ID)
Command1.CommandType = 4
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
%>
Please, Please help me if you can. Thanks so much bprego
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION.
I can run the stored procedure in Query analyzer and it works great. So the problem has to be from the asp page to the database somewhere.
here is the code i am using.
<%
set Command1 = Server.CreateObject("ADODB.Command"
Command1.ActiveConnection = MM_SSS_Coe_STRING
Command1.CommandText = "dbo.sp_appendimportdata"
Command1.Parameters.Append Command1.CreateParameter("@OPERATOR_ID", 3, 1,4,Command1__OPERATOR_ID)
Command1.Parameters.Append Command1.CreateParameter("@JOB_ID", 3, 1,4,Command1__JOB_ID)
Command1.CommandType = 4
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
%>
Please, Please help me if you can. Thanks so much bprego