Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 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 December 23rd, 2005, 11:44 AM
Registered User
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Returning Stored Procedure Results from ASP page

Hello All! I need help...I am trying to access a store proc using the code below. When I test the proc in Enterprise Manager, it returns records, however it is not returning any records via the page. I copied the same syntax from another page in the website. Are there any limits to the number of columns asp can handle in a recordset?:

Dim objComm, objParam, strSite
Dim rsList 'recordset variable

Set objComm = Server.CreateObject("ADODB.Command")

objComm.ActiveConnection = sDSN
objComm.CommandType = adCmdStoredProc
objComm.CommandText = "uspFollowUp"

Set objParam = objComm.CreateParameter("@Site",adChar,adParamInpu t,6)
objComm.Parameters.Append objParam

strSite = "SITE09"
objComm.Parameters("@Site") = strSite

Set rsList = objComm.Execute

Set objComm = Nothing
Set objParam = Nothing

Cheers! Jenna:D





Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning a value (stored procedure scandalous ASP.NET 2.0 Basics 9 November 7th, 2007 03:41 PM
Returning Values from a Stored Procedure kadjw SQL Server ASP 1 September 13th, 2006 12:08 PM
Stored Procedures returning no results to access 50bmg_de SQL Server 2000 5 February 21st, 2006 04:58 AM
Problems returning count in Stored Procedure planza SQL Language 1 December 21st, 2005 03:24 PM
Calling stored procedure from ASP page niravp SQL Server ASP 7 March 19th, 2004 07:40 PM





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