Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 17th, 2006, 12:19 AM
Authorized User
 
Join Date: Dec 2005
Location: Bangalore, , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to kapi.goel
Default ASP Code running Stored Procedure

I am trying to run a stored procedure resides in Informix Database.

I am using ASP code to run the stored procedure (Inserting one record in the database table)
Not getting any error while running the ASP page code given below

-----------------------------------------------------------------
''''''Paramerters Input
pRsrvtnRef = 1
pRsrvtnCode = "E"

Set connIS = Server.CreateObject("ADODB.Connection")
objConnIS.ConnectionString = "Dsn=ICacheDB;Driver={INFORMIX 3.2 BIT};"
connIS.Open

Set cmdSC = Server.CreateObject("ADODB.Command")
cmdSC.ActiveConnection = objConnInformixServer
cmdSC.CommandText = "p_AddRsrvtnV1"
cmdSC.CommandType = adCmdStoredProc


cmdSC.Parameters.Append cmdSC.CreateParameter("@pRsrvtnRef", adInteger, adParamInput, , pRsrvtnRef)

cmdSC.Parameters.Append cmdSC.CreateParameter("@pRsrvtnCode", adChar, adParamInput, 1, pRsrvtnCode)

cmdSC.Execute
connIS.Close

Response.Write("Executed")
Response.End
------------------------------------------------------
Page is runnning fine but not able to insert any record into the table used inside the procedure.

Same input data (2 input parameters) is running the stored procedure manually.

Can any body help me how to trace if the stored procedure is running or not ??? If yes, then where is the error.

Note: Stored procedure i am running is standard and full proof.



KG
__________________
KG




Similar Threads
Thread Thread Starter Forum Replies Last Post
Running stored procedure from .adp module mantle51 Access VBA 1 August 13th, 2007 12:17 PM
Error When Running Stored Procedure Dwizz SQL Server 2000 4 May 15th, 2007 09:07 AM
Running oracle stored procedure from access Justine Access 9 December 21st, 2006 09:36 AM
Running stored procedure in Access VBA Bryon Burbage Access VBA 0 July 21st, 2006 09:14 AM
Check the strored procedure running in ASP code kapi.goel ASP.NET 1.0 and 1.1 Professional 0 May 17th, 2006 12:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.