Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:17 PM.


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