Home | Advertising Info172 USERS CURRENTLY ONLINE   
   Site Search Contact Us Tuesday, July 23, 2019  

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

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program 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 - 2019 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 asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components 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