Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is the problem?

Status
Not open for further replies.

bprego

Programmer
Sep 11, 2003
7
US
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(&quot;ADODB.Command&quot;)
Command1.ActiveConnection = MM_SSS_Coe_STRING
Command1.CommandText = &quot;dbo.sp_appendimportdata&quot;
Command1.Parameters.Append Command1.CreateParameter(&quot;@OPERATOR_ID&quot;, 3, 1,4,Command1__OPERATOR_ID)
Command1.Parameters.Append Command1.CreateParameter(&quot;@JOB_ID&quot;, 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
 
I need to see the code on the Stored Procedure to help you. If you post it, I can try to get you straightened out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top