Home | Advertising Info417 USERS CURRENTLY ONLINE   
   Site Search Contact Us Wednesday, December 19, 2018  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.


We didn't realize
the site was so popular.

Other Stuff

Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: Stored Procedure Return Value
From: Tony
Date: 3/22/1999 11:37:05 PM


Hi all,

Can anyone tell me why I could not catch a returned value from a stored
procedure by using the following code (from MS web site
http://support.microsoft.com/support/kb/articles/q164/4/85.asp on IIS4/SQL
server 6.5 ? What I got was always a empty value for the variable
cmd.Parameters(0). Do we need to do something special to catach a value of


<!--#include virtual="/ASPSAMP/SAMPLES/ADOVBS.INC"-->
<HEAD><TITLE>Place Document Title Here</TITLE></HEAD>

This first method queries the data source about the parameters
of the stored procedure. This is the least efficient method of calling
a stored procedure.<BR>
Set cn = Server.CreateObject("ADODB.Connection")
Set cmd = Server.CreateObject("ADODB.Command")

cn.Open "data source name", "userid", "password"
Set cmd.ActiveConnection = cn
cmd.CommandText = "sp_test"
cmd.CommandType = adCmdStoredProc
' Ask the server about the parameters for the stored proc
' Assign a value to the 2nd parameter.
' Index of 0 represents first parameter.
cmd.Parameters(1) = 11
Calling via method 1<BR>
ReturnValue = <% Response.Write cmd.Parameters(0) %><P>


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2018 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com