HighDots Forums  

Returning a recordset from a stored proc

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Returning a recordset from a stored proc in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AndrewM
 
Posts: n/a

Default Returning a recordset from a stored proc - 07-05-2004 , 06:16 AM






Hello everyone,

I use stored procedures most of the time for returning data from our
database. Our latest SP is a script of around 5000 lines and this executes
okay from the database, but a call from an asp page fails at the open
recordset line. All the other sp's return data to the asp pages without
problems so its not a connection problem nor is the sp failing.

I'm just wondering if this problem has to do with the size of the sp. Any
help or advise will be much appreciated.

Thanks,
Andrew.

I use the standard UD call for the recordset.

<!--#include file="../../Connections/XcapeSQL.asp" -->
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_XcapeSQL_STRING
Recordset1.Source = "{call dbo.GetRoomOptions}"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.