Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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
  #1 (permalink)  
Old February 1st, 2006, 10:19 AM
Registered User
 
Join Date: Feb 2006
Location: jakarta, jakarta, Indonesia.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default working with stored procedure and asp

how to receive output variable from stored procedure in asp variable?

for example, i have my stored procedure with output variable that is sp_generate
in this stored procedure, i generating code for every new transaction

in my query analizer, this stored procedure run without any error
and give the new code as output and the new code is printed in result grid.
(run as : "sp_generate '0601', a")

some one can help me? or you have sample of asp coding that working with stored procedure that is having output variable ?

this is my stored procedure code:
create proc sp_generate
@front char(4),
@fin char(9)OUTPUT
as .......

in asp :
set objRS = server.CreateObject("ADODB.RecordSet")
set conn = server.CreateObject("ADODB.Connection")
recently, i'm using objRS.open method like
objRS.open "SQL string", conn,1,3

what should i do in my code to receive that output with open method??

thanks alotttt..


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Procedure isn't working yougotiger BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 5th, 2007 06:53 PM
Working with Stored Procedure debjanib ASP.NET 1.0 and 1.1 Professional 1 May 16th, 2006 02:00 AM
How will I pass stored procedure in an asp shoakat SQL Server 2000 1 July 15th, 2004 10:28 PM
Executing a stored procedure from ASP tlbacon527 Classic ASP Databases 2 January 23rd, 2004 03:50 PM
Executing a Stored Procedure using ASP. treadmill Classic ASP Databases 3 July 24th, 2003 04:21 PM





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